We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 462d368 commit f2b77fdCopy full SHA for f2b77fd
.changeset/funny-shoes-begin.md
@@ -0,0 +1,5 @@
1
+---
2
+'@craftjs/core': patch
3
4
+
5
+Ensure non-null resolver prop value in Editor component
packages/core/src/editor/Editor.tsx
@@ -18,7 +18,9 @@ export const Editor: React.FC<React.PropsWithChildren<Partial<Options>>> = ({
18
// we do not want to warn the user if no resolver was supplied
19
if (options.resolver !== undefined) {
20
invariant(
21
- typeof options.resolver === 'object' && !Array.isArray(options.resolver),
+ typeof options.resolver === 'object' &&
22
+ !Array.isArray(options.resolver) &&
23
+ options.resolver !== null,
24
ERROR_RESOLVER_NOT_AN_OBJECT
25
);
26
}
0 commit comments