mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
fix(plugin-tools-panel): CB-2286 Save active tool tab after page refresh
This commit is contained in:
@@ -63,10 +63,10 @@ interface IToolsState {
|
||||
}
|
||||
|
||||
export const ToolsPanel = observer<Props>(function ToolsPanel({ container }) {
|
||||
const prevTabs = useRef<string[]>([]);
|
||||
const state = useUserData<IToolsState>('tools', () => ({ selectedTabId: null }));
|
||||
const tabStyle = [BASE_TAB_STYLES, tabsStyles, UNDERLINE_TAB_STYLES];
|
||||
const tabs = container.getIdList();
|
||||
const prevTabs = useRef<string[]>(tabs);
|
||||
const equal = isArraysEqual(prevTabs.current, tabs);
|
||||
|
||||
untracked(action(() => {
|
||||
|
||||
Reference in New Issue
Block a user