Content-Length: 851 | pFad | http://github.com/lowcoder-org/lowcoder/pull/1809.diff
thub.com diff --git a/client/packages/lowcoder/src/comps/comps/tabs/tabbedContainerComp.tsx b/client/packages/lowcoder/src/comps/comps/tabs/tabbedContainerComp.tsx index 73fa06c0d..86124c921 100644 --- a/client/packages/lowcoder/src/comps/comps/tabs/tabbedContainerComp.tsx +++ b/client/packages/lowcoder/src/comps/comps/tabs/tabbedContainerComp.tsx @@ -407,7 +407,8 @@ class TabbedContainerImplComp extends TabbedContainerBaseComp implements IContai }, } as CompAction; } - if (value.type === "delete" && this.children.tabs.getView().length <= 1) { + const { path } = action; + if (value.type === "delete" && path[0] === 'tabs' && this.children.tabs.getView().length <= 1) { messageInstance.warning(trans("tabbedContainer.atLeastOneTabError")); // at least one tab return this;Fetched URL: http://github.com/lowcoder-org/lowcoder/pull/1809.diff
Alternative Proxies: