From fb8755ea3c720c98f002a6756c39b8fed11482c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milorad=20FIlipovi=C4=87?= Date: Fri, 17 Mar 2023 13:24:08 +0100 Subject: [PATCH] fix(editor): Disable tooltip for display modes that don't support mapping (#5715) fix(editor): Disable mapping tooltip for display modes that don't support mapping --- packages/editor-ui/src/components/ParameterInputFull.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/editor-ui/src/components/ParameterInputFull.vue b/packages/editor-ui/src/components/ParameterInputFull.vue index 2551522729..b884d76b12 100644 --- a/packages/editor-ui/src/components/ParameterInputFull.vue +++ b/packages/editor-ui/src/components/ParameterInputFull.vue @@ -92,6 +92,8 @@ import { useSegment } from '@/stores/segment'; import { externalHooks } from '@/mixins/externalHooks'; import { getMappedResult } from '../utils/mappingUtils'; +const DISPLAY_MODES_WITH_DATA_MAPPING = ['table', 'json', 'schema']; + export default mixins(showMessage, externalHooks).extend({ name: 'parameter-input-full', components: { @@ -190,7 +192,8 @@ export default mixins(showMessage, externalHooks).extend({ !this.ndvStore.isMappingOnboarded && this.focused && this.isInputTypeString && - !this.isInputDataEmpty + !this.isInputDataEmpty && + DISPLAY_MODES_WITH_DATA_MAPPING.includes(this.displayMode) ); }, },