File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/app/src/app/overmind/namespaces/dashboard Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -564,6 +564,7 @@ export const getTemplateSandboxes = async ({ state, effects }: Context) => {
564
564
565
565
export const getStartPageSandboxes = async ( { state, effects } : Context ) => {
566
566
const { dashboard } = state ;
567
+
567
568
try {
568
569
/**
569
570
* For now we decided to NOT show the templates on the home page
@@ -573,11 +574,9 @@ export const getStartPageSandboxes = async ({ state, effects }: Context) => {
573
574
const usedTemplates = await effects.gql.queries.listPersonalTemplates({
574
575
teamId: state.activeTeam,
575
576
});
576
-
577
577
if (!usedTemplates || !usedTemplates.me) {
578
578
return;
579
579
}
580
-
581
580
dashboard.sandboxes.TEMPLATE_HOME = usedTemplates.me.recentlyUsedTemplates.slice(
582
581
0,
583
582
5
@@ -601,6 +600,8 @@ export const getStartPageSandboxes = async ({ state, effects }: Context) => {
601
600
dashboard . sandboxes . RECENT_BRANCHES =
602
601
branchesResult ?. me ?. recentBranches || [ ] ;
603
602
} catch ( error ) {
603
+ dashboard . sandboxes . RECENT_SANDBOXES = [ ] ;
604
+ dashboard . sandboxes . RECENT_BRANCHES = [ ] ;
604
605
effects . notificationToast . error (
605
606
'There was a problem getting your sandboxes'
606
607
) ;
You can’t perform that action at this time.
0 commit comments