Skip to content

Commit 479263f

Browse files
committed
Update safe-action.ts
1 parent e325344 commit 479263f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/web/lib/actions/safe-action.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export const authActionClient = actionClient.use(
6464
},
6565
});
6666

67-
if (!workspace || !workspace.users) {
67+
if (!workspace || !workspace.users || workspace.users.length === 0) {
6868
throw new Error("Workspace not found.");
6969
}
7070

0 commit comments

Comments
 (0)