diff --git a/config.js b/config.js index a3f97bc83..7f83ebe4b 100644 --- a/config.js +++ b/config.js @@ -1,5 +1,5 @@ module.exports = { - url: { + url: { production: { LANDING: "https://craft.js.org/", DOCUMENTATION: "https://craft.js.org/r/docs/overview/", @@ -15,5 +15,5 @@ module.exports = { DOCUMENTATION: "http://localhost:3000/r/docs/overview/", BASIC_EXAMPLE: "http://localhost:3002/" } - }[process.env.ENV || 'development'] -} + }[process.env.ENV || "development"] +}; diff --git a/packages/core/src/hooks/useEditor.tsx b/packages/core/src/hooks/useEditor.tsx index 838b37f28..e10021eb4 100644 --- a/packages/core/src/hooks/useEditor.tsx +++ b/packages/core/src/hooks/useEditor.tsx @@ -52,7 +52,7 @@ export function useEditor(collect?: any): useEditor { setNodeEvent("hovered", null); } }; - }, [EditorActions]); + }, [EditorActions, setNodeEvent]); return { connectors: handlers,