From 6fe24316765af2e5e004c2daa2ef075e899e235a Mon Sep 17 00:00:00 2001 From: smileydev <47900232+prosdev0107@users.noreply.github.com> Date: Thu, 3 Mar 2022 15:22:49 -0500 Subject: [PATCH] fix(nested-tab-available): make the another tabs into one tabs available (#18877) * fix(nested-tab-available): make the another tabs into one tabs available * fix(netsted-tab): remove code of disable nested tab --- superset-frontend/src/dashboard/util/getDropPosition.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/superset-frontend/src/dashboard/util/getDropPosition.js b/superset-frontend/src/dashboard/util/getDropPosition.js index 49c70dc9e593e..81cbc48f46941 100644 --- a/superset-frontend/src/dashboard/util/getDropPosition.js +++ b/superset-frontend/src/dashboard/util/getDropPosition.js @@ -54,15 +54,6 @@ export default function getDropPosition(monitor, Component) { return null; } - // TODO need a better solution to prevent nested tabs - if ( - draggingItem.type === TABS_TYPE && - component.type === TAB_TYPE && - componentDepth === 2 - ) { - return null; - } - const validChild = isValidChild({ parentType: component.type, parentDepth: componentDepth,