From ed5ca6cd52f07fe4307d8760c44532580b8768aa Mon Sep 17 00:00:00 2001 From: Jaden Diefenbaugh <jaden.diefenbaugh@idiap.ch> Date: Tue, 15 May 2018 10:46:17 +0200 Subject: [PATCH] [toolchain] enable history across saves, closes #106 --- conda/js/src/components/toolchain/ToolchainEditor.jsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/conda/js/src/components/toolchain/ToolchainEditor.jsx b/conda/js/src/components/toolchain/ToolchainEditor.jsx index 564d7c70..a6dbe35b 100644 --- a/conda/js/src/components/toolchain/ToolchainEditor.jsx +++ b/conda/js/src/components/toolchain/ToolchainEditor.jsx @@ -139,10 +139,7 @@ export class ToolchainEditor extends React.PureComponent<Props, State> { componentWillReceiveProps = (nextProps: Props) => { this.setState({ cache: getValidObj(nextProps.data), - history: { - past: [], - future: [], - }, + history: generateNewHistory(this.state), }); } -- GitLab