Commit c2fff6f
authored
* Don't throw error if query not in page/layout component fixes #2030
We were throwing errors for what actually wasn't an error. Which is
confusing enough but also, to add insult to injury, the error message is
inscrutable.
This PR removes the invalid check.
* remove unused import
1 parent b2227c7 commit c2fff6f
File tree
1 file changed
+6
-9
lines changed- packages/gatsby/src/internal-plugins/query-runner
1 file changed
+6
-9
lines changedLines changed: 6 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
88 | 87 | | |
89 | 88 | | |
90 | 89 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
99 | 96 | | |
100 | 97 | | |
101 | 98 | | |
| |||
0 commit comments