Fixed inconsistent use of collection id and name (#1179)

Co-authored-by: sunilyadav <v-yadavsunil@microsoft.com>
This commit is contained in:
Sunil Kumar Yadav
2021-12-28 01:10:12 +05:30
committed by GitHub
parent 025d5010b4
commit e61f9f2a38
2 changed files with 2 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ export const DeleteCollectionConfirmationPane: FunctionComponent<DeleteCollectio
const onSubmit = async (): Promise<void> => {
const collection = useSelectedNode.getState().findSelectedCollection();
if (!collection || inputCollectionName !== collection.id()) {
const errorMessage = "Input " + collectionName + " name does not match the selected " + collectionName;
const errorMessage = "Input " + collectionName + " id does not match the selected " + collectionName;
setFormError(errorMessage);
NotificationConsoleUtils.logConsoleError(
`Error while deleting ${collectionName} ${collection.id()}: ${errorMessage}`