Skip to content

Commit 5885c56

Browse files
fix: hasNodes check
1 parent d2a6e72 commit 5885c56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/routes/codeOperations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ codeOperationsRouter.post('/generate', requireEmailMiddleware, async (request, r
5959
|| entity.json === '{}'
6060
|| entity.json.length === 0
6161
|| !JSON.parse(entity.json)?.nodes
62-
|| JSON.parse(entity.json)?.nodes?.length === 0;
62+
|| JSON.parse(entity.json)?.nodes?.length !== 0;
6363
};
6464

6565
if (!hasNodes(projectEntity)) {

0 commit comments

Comments
 (0)