Skip to content

Commit aa26ac5

Browse files
chakrihackerCompuIves
authored andcommitted
update sandbox count when deleted (codesandbox#534)
1 parent a9934ce commit aa26ac5

File tree

1 file changed

+1
-1
lines changed
  • packages/app/src/app/store/modules/profile

1 file changed

+1
-1
lines changed

packages/app/src/app/store/modules/profile/actions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function deleteSandbox({ api, state }) {
1313
id: sandboxId,
1414
},
1515
})
16-
.then(() => undefined);
16+
.then(() => state.set(`profile.current.sandboxCount - 1`));
1717
}
1818

1919
export function getAllUserSandboxes({ api }) {

0 commit comments

Comments
 (0)