fix misconfiguration for history management (#787)

This commit is contained in:
Bruce Martin
2019-05-24 21:01:11 -07:00
committed by GitHub
parent 3dc45d6330
commit 1ef77d1596

View File

@@ -59,7 +59,7 @@ const saveOnActions = new Set([
"categorical metadata filter select",
"categorical metadata filter deselect",
"categorical metadata filter all of these",
"categorical metadata none of these",
"categorical metadata filter none of these",
"color by categorical metadata",
"color by continuous metadata",
@@ -100,9 +100,15 @@ const applyPending = () => ({
[actionKey]: "applyPending",
[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 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