From e61f9f2a389e9501a64fec337983c75bdc50b35a Mon Sep 17 00:00:00 2001 From: Sunil Kumar Yadav <79906609+sunilyadav840@users.noreply.github.com> Date: Tue, 28 Dec 2021 01:10:12 +0530 Subject: [PATCH] Fixed inconsistent use of collection id and name (#1179) Co-authored-by: sunilyadav --- src/Explorer/Panes/AddCollectionPanel.tsx | 2 +- .../DeleteCollectionConfirmationPane.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Explorer/Panes/AddCollectionPanel.tsx b/src/Explorer/Panes/AddCollectionPanel.tsx index a5d6651d5..94250b2d7 100644 --- a/src/Explorer/Panes/AddCollectionPanel.tsx +++ b/src/Explorer/Panes/AddCollectionPanel.tsx @@ -279,7 +279,7 @@ export class AddCollectionPanel extends React.Component - {`${getCollectionName()} ${userContext.apiType === "Mongo" ? "name" : "id"}`} + {`${getCollectionName()} id`} => { 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}`