mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-08 00:54:10 +01:00
fix(#679): fixed issue while removing client certs
This commit is contained in:
parent
e9a8763ca0
commit
72df4419ff
@ -60,7 +60,9 @@ const CollectionSettings = ({ collection }) => {
|
|||||||
|
|
||||||
const onClientCertSettingsRemove = (config) => {
|
const onClientCertSettingsRemove = (config) => {
|
||||||
const brunoConfig = cloneDeep(collection.brunoConfig);
|
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))
|
dispatch(updateBrunoConfig(brunoConfig, collection.uid))
|
||||||
.then(() => {
|
.then(() => {
|
||||||
toast.success('Collection settings updated successfully');
|
toast.success('Collection settings updated successfully');
|
||||||
|
Loading…
Reference in New Issue
Block a user