diff --git a/src/components/molecules/EarthEditor/LayerTreeViewItem/Layer/use-editable.ts b/src/components/molecules/EarthEditor/LayerTreeViewItem/Layer/use-editable.ts index 23d19c110..57d69dbec 100644 --- a/src/components/molecules/EarthEditor/LayerTreeViewItem/Layer/use-editable.ts +++ b/src/components/molecules/EarthEditor/LayerTreeViewItem/Layer/use-editable.ts @@ -58,7 +58,7 @@ export default function ({ }, [resetEditing]); const inputRef = useRef(null); - useClickAway(inputRef, cancelEditing); + useClickAway(inputRef, finishEditing); return { editing, diff --git a/src/config.ts b/src/config.ts index 1548e120d..b55d89671 100644 --- a/src/config.ts +++ b/src/config.ts @@ -21,7 +21,7 @@ declare global { export const defaultConfig: Config = { api: "/api", plugins: "/plugins", - published: window.origin + "/p/{}", + published: window.origin + "/p/{}/", }; export default async function loadConfig() {