Skip to content

Commit

Permalink
fix (#2997)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbadura authored Jun 25, 2024
1 parent 0b660db commit ebc3fad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/BusolaExtensions/BusolaExtensionEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ export function BusolaExtensionEdit({
? cloneDeep(initialExtension)
: createConfigMapTemplate(namespace || ''),
);

const [initialUnchangedResource] = useState(initialExtension);
const [initialResource] = useState(
initialExtension || createConfigMapTemplate(namespace || ''),
);
Expand All @@ -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}
Expand Down

0 comments on commit ebc3fad

Please sign in to comment.