Unverified Commit de501a96 authored by Manoj Pandian Sakthivel's avatar Manoj Pandian Sakthivel Committed by GitHub
Browse files

Fix eye icon state (#768)

parent d752d438
Pipeline #293475 passed with stages
in 5 minutes and 28 seconds
......@@ -23,6 +23,7 @@ import {
} from '@reduxjs/toolkit';
import { batch } from 'react-redux';
import pickBy from 'lodash/pickBy';
import merge from 'lodash/merge';
import browserStorageService from 'src/content/app/genome-browser/services/browserStorageService';
import browserBookmarksStorageService from 'src/content/app/genome-browser/services/browser-bookmarks/browserBookmarksStorageService';
......@@ -267,7 +268,7 @@ const browserGeneralSlice = createSlice({
state.activeFocusObjectIds = action.payload;
},
updateTrackStates(state, action: PayloadAction<BrowserTrackStates>) {
state.trackStates = Object.assign(state.trackStates, action.payload);
state.trackStates = merge(state.trackStates, action.payload);
},
deleteBrowserDataForGenome(state, action: PayloadAction<string>) {
const genomeIdToRemove = action.payload;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment