mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-21 23:43:15 +01:00
revert
This commit is contained in:
parent
7c2fcbea38
commit
c716223d38
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user