From 6d7eac8f7db2edf17ff980a8e5cdbc8fb66bac9d Mon Sep 17 00:00:00 2001 From: Martin Obersteiner Date: Mon, 18 Nov 2024 13:06:42 +0100 Subject: [PATCH] fix: don't pass undefined to controlled component `fieldMeta.value` is intially `undefined`, making the component think it is uncontrolled, even though it is actually controlled --- .../assets/semantic-ui/js/invenio_records_lom/deposit/fields.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invenio_records_lom/ui/theme/assets/semantic-ui/js/invenio_records_lom/deposit/fields.js b/invenio_records_lom/ui/theme/assets/semantic-ui/js/invenio_records_lom/deposit/fields.js index e0dc825..cf89330 100644 --- a/invenio_records_lom/ui/theme/assets/semantic-ui/js/invenio_records_lom/deposit/fields.js +++ b/invenio_records_lom/ui/theme/assets/semantic-ui/js/invenio_records_lom/deposit/fields.js @@ -132,7 +132,7 @@ export const LeftLabeledTextField = ({ placeholder={placeholder} rows={rows} type="text" - value={fieldMeta.value} + value={fieldMeta.value || null} /> {required && (