This commit is contained in:
William Quintal 2024-09-05 11:36:50 -04:00
parent 7c2fcbea38
commit c716223d38

View File

@ -2,7 +2,6 @@ import { createSlice } from '@reduxjs/toolkit';
import filter from 'lodash/filter';
import find from 'lodash/find';
import last from 'lodash/last';
import { act } from 'react';
// todo: errors should be tracked in each slice and displayed as toasts
@ -55,7 +54,6 @@ export const tabsSlice = createSlice({
return;
}
const direction = action.payload.direction;
const activeTabIndex = state.tabs.findIndex((t) => t.uid === state.activeTabUid);
@ -74,15 +72,12 @@ export const tabsSlice = createSlice({
const tab = find(state.tabs, (t) => t.uid === action.payload.uid);
if (tab) {
tab.requestPaneWidth = action.payload.requestPaneWidth;
}
},
updateRequestPaneTab: (state, action) => {
const tab = find(state.tabs, (t) => t.uid === action.payload.uid);
console.log("MIN", action.payload.min);
console.log("MAX", action.payload.max);
if (tab) {
tab.requestPaneTab = action.payload.requestPaneTab;
}