diff --git a/src/hydra/dataProvider.ts b/src/hydra/dataProvider.ts index bd62c792..a721b534 100644 --- a/src/hydra/dataProvider.ts +++ b/src/hydra/dataProvider.ts @@ -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';