Skip to content

Commit

Permalink
fix: use params instead of defaultParams in extraInformation
Browse files Browse the repository at this point in the history
  • Loading branch information
adguernier committed Apr 8, 2024
1 parent 9fc1471 commit c2d4a16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hydra/dataProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ function dataProvider(
}
});
let extraInformation: { hasFileField?: boolean } = {};
if ('meta' in defaultParams) {
if ('meta' in params) {
extraInformation = params.meta;
}
const updateHttpMethod = extraInformation?.hasFileField ? 'POST' : 'PUT';
Expand Down

0 comments on commit c2d4a16

Please sign in to comment.