Skip to content

Commit

Permalink
make it so LISA hosted models prop doesn't show up in diff calculatio…
Browse files Browse the repository at this point in the history
…ns (#128)
  • Loading branch information
estohlmann authored Oct 3, 2024
1 parent 83f9290 commit 99066c2
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,11 @@ export function CreateModelModal (props: CreateModelModalProps) : ReactElement {
}

const changesDiff = useMemo(() => {
return props.isEdit ? getJsonDifference(props.selectedItems[0], toSubmit) : getJsonDifference({}, toSubmit);
return props.isEdit ? getJsonDifference({
...props.selectedItems[0],
lisaHostedModel: Boolean(props.selectedItems[0].containerConfig || props.selectedItems[0].autoScalingConfig || props.selectedItems[0].loadBalancerConfig)
}, toSubmit) :
getJsonDifference({}, toSubmit);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [toSubmit, initialForm, props.isEdit]);

Expand Down

0 comments on commit 99066c2

Please sign in to comment.