Skip to content

Commit

Permalink
fix: editing statefulsets
Browse files Browse the repository at this point in the history
  • Loading branch information
mrCherry97 committed Sep 5, 2024
1 parent 4983888 commit 2875459
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/resources/StatefulSets/StatefulSetCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export default function StatefulSetCreate({
const [initialResource] = useState(
initialStatefulSet || createStatefulSetTemplate(namespaceId),
);
const [initialUnchangedResource] = useState(_.cloneDeep(initialStatefulSet));
const { t } = useTranslation();

return (
Expand All @@ -32,6 +33,7 @@ export default function StatefulSetCreate({
singularName={t('stateful-sets.name_singular')}
resource={statefulSet}
initialResource={initialResource}
initialUnchangedResource={initialUnchangedResource}
setResource={setStatefulSet}
onChange={onChange}
formElementRef={formElementRef}
Expand Down

0 comments on commit 2875459

Please sign in to comment.