From 50ca363f6ab7dc97c9475fcab759ddeb1df0cd52 Mon Sep 17 00:00:00 2001 From: arpitnath Date: Tue, 9 Apr 2024 23:31:25 +0530 Subject: [PATCH] fixes; generate hints as per multi-references typed by the usr --- frontend/src/Editor/CodeEditor/SingleLineCodeEditor.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Editor/CodeEditor/SingleLineCodeEditor.jsx b/frontend/src/Editor/CodeEditor/SingleLineCodeEditor.jsx index 0b620851be..cb834b0498 100644 --- a/frontend/src/Editor/CodeEditor/SingleLineCodeEditor.jsx +++ b/frontend/src/Editor/CodeEditor/SingleLineCodeEditor.jsx @@ -130,7 +130,7 @@ const EditorInput = ({ if (totalReferences > 1) { const currentWord = queryInput.split('{{').pop().split('}}')[0]; - queryInput = currentWord; + queryInput = '{{' + currentWord + '}}'; } let completions = getAutocompletion(queryInput, validationType, hints, totalReferences);