chore: model menu functions behave as expected

This commit is contained in:
Danny Avila 2023-03-07 13:19:56 -05:00
parent 191118b90b
commit 6be037323e
9 changed files with 157 additions and 35 deletions

View file

@ -32,6 +32,7 @@ const currentSlice = createSlice({
initialState,
reducers: {
setModels: (state, action) => {
console.log('setModels', action.payload);
const models = [...initialState.models, ...action.payload];
state.models = models;
const modelMap = {};