Skip to content

Commit

Permalink
fix: Fixed empty data model bindings (#14101)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlqn authored Nov 20, 2024
1 parent 8f11d67 commit d362ec2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const useValidDataModels = (currentDataModel: string) => {
org,
app,
layoutSetName: selectedFormLayoutSetName,
dataModelName: isDataModelValid ? currentDataModel : '',
dataModelName: isDataModelValid && currentDataModel ? currentDataModel : dataModels?.[0],
},
{ enabled: !isPendingDataModels && !isFetchingDataModels },
);
Expand Down

0 comments on commit d362ec2

Please sign in to comment.