mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00: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 = {
|
const uniqueWorkspaceName: InputValidator = {
|
||||||
condition: ({ required }) => required,
|
condition: ({ required }) => required,
|
||||||
message: () => `Workspace with this name already exists`,
|
message: () => `Workspace with this name already exists`,
|
||||||
validate: value => !workspaceStore.workspacesList.find((workspace) => workspace.name === value),
|
validate: value => !workspaceStore.getByName(value),
|
||||||
};
|
};
|
||||||
|
|
||||||
@observer
|
@observer
|
||||||
|
|||||||
Reference in new issue
Block a user