Skip to content

Commit

Permalink
Only switch over to constants pane if they are not set
Browse files Browse the repository at this point in the history
  • Loading branch information
will62794 committed Apr 12, 2024
1 parent 5ce2d70 commit b720469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -1232,7 +1232,7 @@ function onSpecParse(newText, parsedSpecTree){

// Don't try to reload the spec yet if we have to instantiate constants
// Also, switch to the appropriate pane.
if (!_.isEmpty(model.specConsts)) {
if (!_.isEmpty(model.specConsts) && _.isEmpty(model.specConstInputVals)) {
console.log("specConsts:", model.specConsts);
console.log("Switching to constants pane");
// model.currPane = Pane.Constants; // TODO: Work out pane UI.
Expand Down

0 comments on commit b720469

Please sign in to comment.