Skip to content

Commit

Permalink
make it so LISA hosted models prop doesn't show up in diff calculations
Browse files Browse the repository at this point in the history
  • Loading branch information
estohlmann committed Oct 3, 2024
1 parent 83f9290 commit 52020dc
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 52020dc

Please sign in to comment.