1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2021-02-02 10:45:39 +02:00
parent f8bfc66ab9
commit 8a34184c46

View File

@ -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