From e467bde457c0d00d6c98a3010de80e3efdb8fcf9 Mon Sep 17 00:00:00 2001 From: Suchit Sahoo Date: Wed, 22 May 2024 22:57:19 +0000 Subject: [PATCH] Bug Fixes for Vis Builder Signed-off-by: Suchit Sahoo --- .../public/application/components/data_tab/dropbox.scss | 1 + .../visualizations/public/persisted_state/persisted_state.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/vis_builder/public/application/components/data_tab/dropbox.scss b/src/plugins/vis_builder/public/application/components/data_tab/dropbox.scss index b50152f0983d..89c7832ac40a 100644 --- a/src/plugins/vis_builder/public/application/components/data_tab/dropbox.scss +++ b/src/plugins/vis_builder/public/application/components/data_tab/dropbox.scss @@ -21,6 +21,7 @@ padding: calc($euiSizeS - ($euiSizeXS / 2)) $euiSizeS $euiSizeS $euiSizeS; background-color: $euiColorLightShade; border-radius: $euiBorderRadius; + overflow-x: hidden; } &__field { diff --git a/src/plugins/visualizations/public/persisted_state/persisted_state.ts b/src/plugins/visualizations/public/persisted_state/persisted_state.ts index fc7d38c4a83a..1b1bed5a2881 100644 --- a/src/plugins/visualizations/public/persisted_state/persisted_state.ts +++ b/src/plugins/visualizations/public/persisted_state/persisted_state.ts @@ -236,7 +236,7 @@ export class PersistedState extends EventEmitter { } // update the merged state value - const targetObj = this._mergedState || cloneDeep(this._defaultState); + const targetObj = cloneDeep(this._mergedState) || cloneDeep(this._defaultState); const sourceObj = merge({}, this._changedState); // handler arguments are (targetValue, sourceValue, key, target, source)