Skip to content

Commit f333a75

Browse files
tdgaoProspector
andauthored
fix empty state for projects in "All" tab (#4801)
Co-authored-by: Prospector <6166773+Prospector@users.noreply.github.com>
1 parent bcf14a4 commit f333a75

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

apps/frontend/src/pages/user/[id].vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,13 @@
304304
/>
305305
</div>
306306
</div>
307-
<div v-else-if="route.params.projectType !== 'collections'" class="error">
307+
<div
308+
v-else-if="
309+
(route.params.projectType && route.params.projectType !== 'collections') ||
310+
(!route.params.projectType && collections.length === 0)
311+
"
312+
class="error"
313+
>
308314
<UpToDate class="icon" />
309315
<br />
310316
<span v-if="auth.user && auth.user.id === user.id" class="preserve-lines text">

0 commit comments

Comments
 (0)