Skip to content
Snippets Groups Projects
Commit 9b2af57a authored by Xiao Gui's avatar Xiao Gui Committed by xgui3783
Browse files

bugfix: nifti layers sometimes gets inadvertedly removed

parent 49117690
No related branches found
No related tags found
No related merge requests found
......@@ -125,7 +125,7 @@ export function ngViewerState(prevState:NgViewerStateInterface = {layers:[], for
return Object.assign({}, prevState, {
/* this configration hides the layer if a non mixable layer already present */
layers : action.layer.constructor === Array
? action.layer
? prevState.layers.concat(action.layer)
: prevState.layers.concat(
Object.assign({}, action.layer,
action.layer.mixability === 'nonmixable' && prevState.layers.findIndex(l => l.mixability === 'nonmixable') >= 0
......
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