Skip to content

Commit

Permalink
Fixed bug where ParameterTable modal would not be re-opened, if the u…
Browse files Browse the repository at this point in the history
…ser aborted while updating a description
  • Loading branch information
james-strauss-uwa committed Jul 23, 2024
1 parent 6613b79 commit f55e53e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/ParameterTable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,11 +338,12 @@ export class ParameterTable {
"Please edit the description for: " + currentNode.getName() + ' - ' + currentField.getDisplayText(),
currentField.getDescription(),
(completed, userText) => {
if (!completed){
return;
// if completed successfully, set the description on the field
if (completed){
currentField.setDescription(userText);
}

currentField.setDescription(userText);
// always re-open the ParameterTable
ParameterTable.openModal(ParameterTable.mode(), ParameterTable.SelectType.Normal);
}
)
Expand Down

0 comments on commit f55e53e

Please sign in to comment.