Skip to content

Commit 25b4b73

Browse files
authored
fix: bug causing WSOD on initial render (#210)
1 parent c3aa223 commit 25b4b73

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/ResultQueries.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function ResultQueries({ data, possibleQueries, dispatch, activeMethod }) {
5555
key={query.method}
5656
data={data}
5757
method={query.method}
58-
query={possibleQueries[query.method]}
58+
query={possibleQueries?.[query.method]}
5959
dispatch={dispatch}
6060
active={query.method === activeMethod}
6161
/>
@@ -72,7 +72,7 @@ function ResultQueries({ data, possibleQueries, dispatch, activeMethod }) {
7272
key={query.method}
7373
data={data}
7474
method={query.method}
75-
query={possibleQueries[query.method]}
75+
query={possibleQueries?.[query.method]}
7676
dispatch={dispatch}
7777
active={query.method === activeMethod}
7878
/>
@@ -88,7 +88,7 @@ function ResultQueries({ data, possibleQueries, dispatch, activeMethod }) {
8888
key={query.method}
8989
data={data}
9090
method={query.method}
91-
query={possibleQueries[query.method]}
91+
query={possibleQueries?.[query.method]}
9292
dispatch={dispatch}
9393
active={query.method === activeMethod}
9494
/>

0 commit comments

Comments
 (0)