Refactoring
This commit is contained in:
1 parent
79bff38001
commit
a876a15e42
5 files changed
+9
-9
No files matched your search
@@ -110,7 +110,7 @@ function newRestartSimulation () {
|
||||
try {
|
||||
if (isRunning === false) {
|
||||
thisObject.status = 'Saving'
|
||||
let result = await canvas.strategySpace.strategizerGateway.saveToStrategyzer(getSimulationParams())
|
||||
let result = await canvas.strategySpace.strategizerGateway.saveToStrategyzer(getUICurrentValues())
|
||||
if (result === false) {
|
||||
thisObject.status = 'Error'
|
||||
counterTillNextState = 500
|
||||
@@ -151,7 +151,7 @@ function newRestartSimulation () {
|
||||
|
||||
function getDefinition () {
|
||||
let definitionNode = canvas.strategySpace.workspace.getProtocolDefinitionNode()
|
||||
definitionNode.simulationParams = getSimulationParams()
|
||||
definitionNode.uiCurrentValues = getUICurrentValues()
|
||||
return JSON.stringify(definitionNode)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user