mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
Merge branch 'feat/grid-appbuilder-improvement' of https://github.com/ToolJet/ToolJet into feat/grid-appbuilder-improvement
This commit is contained in:
commit
3437974c55
1 changed files with 2 additions and 4 deletions
|
|
@ -63,7 +63,7 @@ function orderSuggestions(suggestions, validationType) {
|
|||
return [...matchingSuggestions, ...otherSuggestions];
|
||||
}
|
||||
|
||||
export const generateHints = (hints, isFxHinter = false, totalReferences = 1) => {
|
||||
export const generateHints = (hints, totalReferences = 1) => {
|
||||
if (!hints) return [];
|
||||
|
||||
const suggestions = hints.map(({ hint, type }) => {
|
||||
|
|
@ -90,9 +90,7 @@ export const generateHints = (hints, isFxHinter = false, totalReferences = 1) =>
|
|||
insert: completion.label,
|
||||
};
|
||||
|
||||
let anchorSelection = isFxHinter
|
||||
? pickedCompletionConfig.insert.length
|
||||
: pickedCompletionConfig.insert.length + 2;
|
||||
let anchorSelection = pickedCompletionConfig.insert.length + 2;
|
||||
|
||||
if (completion.type === 'js_methods') {
|
||||
pickedCompletionConfig.from = from;
|
||||
|
|
|
|||
Loading…
Reference in a new issue