From 6deb55126e9f493de4717018a3587088f1d5ab41 Mon Sep 17 00:00:00 2001 From: Csaba Tuncsik Date: Thu, 12 Jan 2023 10:43:45 +0100 Subject: [PATCH] fix(editor): Mapping tooltip dismiss (#5128) fix(editor): not using local storage directly in computed prop --- packages/editor-ui/src/components/ParameterInputFull.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/editor-ui/src/components/ParameterInputFull.vue b/packages/editor-ui/src/components/ParameterInputFull.vue index e721164b2..9da5da378 100644 --- a/packages/editor-ui/src/components/ParameterInputFull.vue +++ b/packages/editor-ui/src/components/ParameterInputFull.vue @@ -103,6 +103,7 @@ export default mixins(showMessage).extend({ forceShowExpression: false, dataMappingTooltipButtons: [] as IN8nButton[], mappingTooltipEnabled: false, + localStorageMappingFlag: window.localStorage.getItem(LOCAL_STORAGE_MAPPING_FLAG) === 'true', }; }, props: { @@ -176,7 +177,7 @@ export default mixins(showMessage).extend({ this.focused && this.isInputTypeString && !this.isInputDataEmpty && - window.localStorage.getItem(LOCAL_STORAGE_MAPPING_FLAG) !== 'true' + !this.localStorageMappingFlag ); }, }, @@ -298,6 +299,7 @@ export default mixins(showMessage).extend({ }, onMappingTooltipDismissed() { window.localStorage.setItem(LOCAL_STORAGE_MAPPING_FLAG, 'true'); + this.localStorageMappingFlag = true; }, }, watch: {