Skip to content

Commit 7ac1767

Browse files
committed
fix(client): handle no input on dialog
1 parent bbc4224 commit 7ac1767

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/client/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ RegisterCommand(
152152
],
153153
{ allowCancel: true }
154154
)) as [string, number];
155+
if (!reportData) return;
155156
emitNet('sync_reports:addReport', reportData[0], reportData[1]);
156157
},
157158
false

0 commit comments

Comments
 (0)