From f9accc94444cce6bd5f1c1ca1f8b9be970f93387 Mon Sep 17 00:00:00 2001 From: rot1024 Date: Fri, 13 Aug 2021 18:27:31 +0900 Subject: [PATCH] fix: default published url, rename layer when focus is removed from text box --- .../EarthEditor/LayerTreeViewItem/Layer/use-editable.ts | 2 +- src/config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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() {