Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
Fix the way actions are updated
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-skriabin committed Nov 21, 2023
1 parent ba11ea4 commit 84f7c31
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/stores/AppStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,11 @@ export const AppStore = types
fetchActions: flow(function* () {
const serverActions = yield self.apiCall("actions");

self.setActions(serverActions ?? []);
const actions = (serverActions ?? []).map((action) => {
return [action, undefined];
});

self.SDK.updateActions(actions);
}),

fetchUsers: flow(function* () {
Expand Down

0 comments on commit 84f7c31

Please sign in to comment.