From 72df4419ff1157153167253831b3d3a03a2a8923 Mon Sep 17 00:00:00 2001 From: Anoop M D Date: Fri, 20 Oct 2023 00:13:10 +0530 Subject: [PATCH] fix(#679): fixed issue while removing client certs --- packages/bruno-app/src/components/CollectionSettings/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/bruno-app/src/components/CollectionSettings/index.js b/packages/bruno-app/src/components/CollectionSettings/index.js index d73b075d0..62d774e2b 100644 --- a/packages/bruno-app/src/components/CollectionSettings/index.js +++ b/packages/bruno-app/src/components/CollectionSettings/index.js @@ -60,7 +60,9 @@ const CollectionSettings = ({ collection }) => { const onClientCertSettingsRemove = (config) => { const brunoConfig = cloneDeep(collection.brunoConfig); - brunoConfig.clientCertificates = brunoConfig.clientCertificates.filter((item) => item.domain != config.domain); + brunoConfig.clientCertificates.certs = brunoConfig.clientCertificates.certs.filter( + (item) => item.domain != config.domain + ); dispatch(updateBrunoConfig(brunoConfig, collection.uid)) .then(() => { toast.success('Collection settings updated successfully');