diff --git a/app/client/src/components/editorComponents/CodeEditor/hintHelpers.ts b/app/client/src/components/editorComponents/CodeEditor/hintHelpers.ts index e37ea7b591..d1ecf40019 100644 --- a/app/client/src/components/editorComponents/CodeEditor/hintHelpers.ts +++ b/app/client/src/components/editorComponents/CodeEditor/hintHelpers.ts @@ -11,6 +11,8 @@ export const bindingHint: HintHelper = (editor, dataTree, customDataTree) => { if (customDataTree) { const customTreeDef = customTreeTypeDefCreator(customDataTree); TernServer.updateDef("customDataTree", customTreeDef); + } else { + TernServer.updateDef("customDataTree", {}); } editor.setOption("extraKeys", {