mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-04 19:18:11 +08:00
fix misconfiguration for history management (#787)
This commit is contained in:
@@ -59,7 +59,7 @@ const saveOnActions = new Set([
|
|||||||
"categorical metadata filter select",
|
"categorical metadata filter select",
|
||||||
"categorical metadata filter deselect",
|
"categorical metadata filter deselect",
|
||||||
"categorical metadata filter all of these",
|
"categorical metadata filter all of these",
|
||||||
"categorical metadata none of these",
|
"categorical metadata filter none of these",
|
||||||
|
|
||||||
"color by categorical metadata",
|
"color by categorical metadata",
|
||||||
"color by continuous metadata",
|
"color by continuous metadata",
|
||||||
@@ -100,9 +100,15 @@ const applyPending = () => ({
|
|||||||
[actionKey]: "applyPending",
|
[actionKey]: "applyPending",
|
||||||
[stateKey]: { fsm: null }
|
[stateKey]: { fsm: null }
|
||||||
});
|
});
|
||||||
const skip = fsm => ({ [actionKey]: "skip", [stateKey]: { fsm } });
|
const skip = (fsm, transition) => ({
|
||||||
|
[actionKey]: "skip",
|
||||||
|
[stateKey]: { fsm: transition.to !== "done" ? fsm : null }
|
||||||
|
});
|
||||||
const clear = () => ({ [actionKey]: "clear", [stateKey]: { fsm: null } });
|
const clear = () => ({ [actionKey]: "clear", [stateKey]: { fsm: null } });
|
||||||
const save = fsm => ({ [actionKey]: "save", [stateKey]: { fsm } });
|
const save = (fsm, transition) => ({
|
||||||
|
[actionKey]: "save",
|
||||||
|
[stateKey]: { fsm: transition.to !== "done" ? fsm : null }
|
||||||
|
});
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Error handler for state transitions that are unexpected. Called by
|
Error handler for state transitions that are unexpected. Called by
|
||||||
|
|||||||
Reference in New Issue
Block a user