Skip to content

Commit

Permalink
Add call to save state in Set Property actions (#4472)
Browse files Browse the repository at this point in the history
  • Loading branch information
ceciliaavila authored May 5, 2023
1 parent 7e9f774 commit dba563d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ export class SetProperties<O extends object = {}> extends Dialog<O> implements S
dc.state.setValue(property, value);
}

// save all state scopes to their respective botState locations.
await dc.state.saveAllChanges();

return await dc.endDialog();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ export class SetProperty<O extends object = {}> extends Dialog<O> implements Set

dc.state.setValue(property, value);

// save all state scopes to their respective botState locations.
await dc.state.saveAllChanges();

return await dc.endDialog();
}

Expand Down

0 comments on commit dba563d

Please sign in to comment.