(newState)
| 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; |
nothing calls this directly
no test coverage detected