From e57854004b14dd3aa16f5e1ec26e3c0b82900515 Mon Sep 17 00:00:00 2001 From: petar-qb Date: Fri, 27 Jun 2025 15:38:16 +0200 Subject: [PATCH] Fix the bug --- dash/dash.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dash/dash.py b/dash/dash.py index e7b194705e..cf6d0f43f1 100644 --- a/dash/dash.py +++ b/dash/dash.py @@ -2491,9 +2491,9 @@ def update(pathname_, search_, **states): _validate.check_for_duplicate_pathnames(_pages.PAGE_REGISTRY) _validate.validate_registry(_pages.PAGE_REGISTRY) - # Set validation_layout - if not self.config.suppress_callback_exceptions: - layout = self.layout + # Set validation_layout + if not self.config.suppress_callback_exceptions: + layout = self.layout if not isinstance(layout, list): layout = [ # pylint: disable=not-callable