MCPcopy Create free account
hub / github.com/microsoft/SandDance / setCleanState

Method setCleanState

docs/app/js/sanddance-app.js:14199–14208  ·  view source on GitHub ↗
(newState)

Source from the content-addressed store, hash-verified

14197 }
14198 addHistory(historicInsight, historyAction, additionalUIState) {
14199 const setCleanState = (newState)=>{
14200 const cleanState = Object.assign(Object.assign({}, newState), additionalUIState);
14201 if (!cleanState.note) cleanState.note = null;
14202 delete cleanState.rebaseFilter;
14203 if (this.viewer) {
14204 const { signalValues } = this.viewer.getInsight();
14205 cleanState.signalValues = Object.assign(Object.assign(Object.assign({}, this.state.signalValues), signalValues), cleanState.signalValues);
14206 }
14207 this.setState(cleanState);
14208 };
14209 if (historyAction.omit) {
14210 setCleanState(historicInsight);
14211 return;

Callers

nothing calls this directly

Calls 1

getInsightMethod · 0.45

Tested by

no test coverage detected