Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen committed 2021-02-02 10:45:39 +02:00
1 parent f8bfc66ab9
commit 8a34184c46
1 file changed
+1 -1
@@ -10,7 +10,7 @@ import { CommandOverlay } from "../command-palette/command-container";
const uniqueWorkspaceName: InputValidator = {
condition: ({ required }) => required,
message: () => `Workspace with this name already exists`,
validate: value => !workspaceStore.workspacesList.find((workspace) => workspace.name === value),
validate: value => !workspaceStore.getByName(value),
};
@observer