Skip to content

Commit 7c21aca

Browse files
committed
Make showcased sandboxes much more efficient
1 parent 1edafa7 commit 7c21aca

File tree

1 file changed

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

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,14 @@ export default {
4949
isLoadingProfile: types.boolean,
5050
sandboxes: types.map(types.map(types.array(Sandbox))),
5151
likedSandboxes: types.map(types.map(types.array(Sandbox))),
52-
userSandboxes: types.array(Sandbox),
52+
userSandboxes: types.array(
53+
types.model({
54+
id: types.string,
55+
title: types.maybe(types.string),
56+
insertedAt: types.string,
57+
updatedAt: types.string,
58+
})
59+
),
5360
currentSandboxesPage: types.number,
5461
currentLikedSandboxesPage: types.number,
5562
isLoadingSandboxes: types.boolean,

0 commit comments

Comments
 (0)