Unverified Commit e9b90331 authored by Jyothish's avatar Jyothish Committed by GitHub
Browse files

Show 20 previously viewed entities in Entity Viewer (#548)

parent 361f8b59
Pipeline #183628 passed with stages
in 4 minutes and 54 seconds
...@@ -70,7 +70,7 @@ const bookmarksSlice = createSlice({ ...@@ -70,7 +70,7 @@ const bookmarksSlice = createSlice({
const updatedEntites = [ const updatedEntites = [
newEntity, newEntity,
...savedEntitiesWithoutCurrentEntity ...savedEntitiesWithoutCurrentEntity
].slice(0, 20); ].slice(0, 21);
state.previouslyViewed[genomeId] = updatedEntites; state.previouslyViewed[genomeId] = updatedEntites;
entityViewerBookmarksStorageService.updatePreviouslyViewedEntities({ entityViewerBookmarksStorageService.updatePreviouslyViewedEntities({
......
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