fix(#679): fixed issue while removing client certs

This commit is contained in:
Anoop M D 2023-10-20 00:13:10 +05:30
parent e9a8763ca0
commit 72df4419ff

View File

@ -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');