Skip to content

Commit

Permalink
fix(nested-tab-available): make the another tabs into one tabs availa…
Browse files Browse the repository at this point in the history
…ble (#18877)

* fix(nested-tab-available): make the another tabs into one tabs available

* fix(netsted-tab): remove code of disable nested tab
  • Loading branch information
prosdev0107 committed Mar 3, 2022
1 parent 26486d0 commit 6fe2431
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions superset-frontend/src/dashboard/util/getDropPosition.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6fe2431

Please sign in to comment.