File tree Expand file tree Collapse file tree 2 files changed +15
-6
lines changed
src/tools/json-search/lib Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 11export const JSON_SEARCH_DEFAULTS = {
2- query : "fieldA [0,0]" ,
3- json : "" ,
2+ query : "fieldA [0,1]" ,
3+ json : `{
4+ "fieldA": 1,
5+ "fieldB": "something else",
6+ "fieldC": {
7+ "subFieldA": 1,
8+ "subFieldB": "example"
9+ }
10+ }` ,
411} ;
Original file line number Diff line number Diff line change @@ -124,10 +124,12 @@ export function useJsonSearch() {
124124 ) ;
125125 workerRef . current = worker ;
126126
127- const handleMessage = ( event : MessageEvent < {
128- lines : string [ ] ;
129- error : string | null ;
130- } > ) => {
127+ const handleMessage = (
128+ event : MessageEvent < {
129+ lines : string [ ] ;
130+ error : string | null ;
131+ } >
132+ ) => {
131133 setParsedLines ( event . data ?. lines ?? [ ] ) ;
132134 setParsedError ( event . data ?. error ?? null ) ;
133135 setIsParsing ( false ) ;
You can’t perform that action at this time.
0 commit comments