From 07617a29ef8e46af2466d20adbdc58201ca19bf8 Mon Sep 17 00:00:00 2001 From: Andrea Cecchi Date: Fri, 20 Dec 2024 11:08:59 +0100 Subject: [PATCH] fix: read waiting_list from right data structure (#835) --- src/customizations/volto-form-block/components/View.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/customizations/volto-form-block/components/View.jsx b/src/customizations/volto-form-block/components/View.jsx index 4ebce2c85..3fb0a7f4f 100644 --- a/src/customizations/volto-form-block/components/View.jsx +++ b/src/customizations/volto-form-block/components/View.jsx @@ -324,7 +324,7 @@ const View = ({ data, id, path }) => { useEffect(() => { if (submitResults?.loaded) { - if (submitResults?.result?.data?.waiting_list) { + if (submitResults?.result?.waiting_list) { setFormState({ type: FORM_STATES.warning, result: {