mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 08:58:26 +00:00
Multi reference autocomplete fix (#2500)
This commit is contained in:
parent
c55157afcd
commit
f45463d889
1 changed files with 1 additions and 3 deletions
|
|
@ -124,9 +124,7 @@ export const generateHints = (hints, totalReferences = 1, input, searchText) =>
|
|||
const multiReferenceInSingleIndentifier = totalReferences == 1 && searchText !== currentWord;
|
||||
|
||||
if (multiReferenceInSingleIndentifier) {
|
||||
const splitAtSearchString = doc.toString().split(searchText)[0];
|
||||
const newFrom = splitAtSearchString.length;
|
||||
|
||||
const newFrom = to - searchText.length;
|
||||
pickedCompletionConfig.from = newFrom;
|
||||
} else if (totalReferences > 1 && completion.type !== 'js_methods') {
|
||||
const splitIndex = from;
|
||||
|
|
|
|||
Loading…
Reference in a new issue