Skip to content

Commit 6eb984d

Browse files
committed
fix: 🐛 default data when stringify failed
1 parent 9774b90 commit 6eb984d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ export const safeStringify = (data) => {
4646
try {
4747
return JSON.stringify(data);
4848
} catch (e) {
49-
return '';
49+
return '{}';
5050
}
5151
}

0 commit comments

Comments
 (0)