From 4aa88aaac6169c9e78b061122b0efa0384fa04cd Mon Sep 17 00:00:00 2001 From: Damian Badura Date: Mon, 24 Jun 2024 16:11:41 +0200 Subject: [PATCH] fix --- src/components/BusolaExtensions/BusolaExtensionEdit.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/BusolaExtensions/BusolaExtensionEdit.js b/src/components/BusolaExtensions/BusolaExtensionEdit.js index c6e154586a..c91d972c2a 100644 --- a/src/components/BusolaExtensions/BusolaExtensionEdit.js +++ b/src/components/BusolaExtensions/BusolaExtensionEdit.js @@ -24,6 +24,8 @@ export function BusolaExtensionEdit({ ? cloneDeep(initialExtension) : createConfigMapTemplate(namespace || ''), ); + + const [initialUnchangedResource] = useState(initialExtension); const [initialResource] = useState( initialExtension || createConfigMapTemplate(namespace || ''), ); @@ -36,6 +38,7 @@ export function BusolaExtensionEdit({ singularName={t('config-maps.name_singular')} resource={extension} initialResource={initialResource} + initialUnchangedResource={initialUnchangedResource} setResource={setExtension} onChange={onChange} formElementRef={formElementRef}