From c2d4a161e8240468c2ee70987f42c3c11649b6d0 Mon Sep 17 00:00:00 2001 From: adrien guernier Date: Mon, 8 Apr 2024 14:30:29 +0200 Subject: [PATCH] fix: use params instead of defaultParams in extraInformation --- src/hydra/dataProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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';