Skip to content

Commit d824e05

Browse files
committed
initialize json state with empty object instead of null
1 parent 6c5a4f4 commit d824e05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/store/useJson.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ interface JsonActions {
88
}
99

1010
const initialStates = {
11-
json: "",
11+
json: "{}",
1212
loading: true,
1313
};
1414

0 commit comments

Comments
 (0)