summaryrefslogtreecommitdiff
path: root/frontend/api
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-07-10 22:39:27 +0200
committerJules Laplace <julescarbon@gmail.com>2020-07-10 22:39:27 +0200
commit2001ddd7e2a8926ec97fdd4d5c73b2d4e5b293de (patch)
treebe929f7cceaff183c7233f99b28bc93fcab53677 /frontend/api
parentcc465329a2261b7db11c12665cab62affb266592 (diff)
highlight graph links when hovering
Diffstat (limited to 'frontend/api')
-rw-r--r--frontend/api/crud.reducer.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/api/crud.reducer.js b/frontend/api/crud.reducer.js
index baf2536..dd1fe48 100644
--- a/frontend/api/crud.reducer.js
+++ b/frontend/api/crud.reducer.js
@@ -115,12 +115,12 @@ export const crudReducer = (type) => {
...state,
update: action.data,
index: addToIndex(state.index, action.data.res, state.options.sort),
- show: {
+ show: (state.show && state.show.res) ? {
res: (state.show.res.id === action.data.res.id ? {
...state.show.res,
...action.data.res,
} : state.show.res),
- }
+ } : {}
}
case crud_type.index_error:
return {