From ae39c8dd31d3677589654c2de30e406a035e5fea Mon Sep 17 00:00:00 2001 From: philipp lang Date: Sat, 20 Apr 2024 00:29:32 +0200 Subject: [PATCH] Fix: Return emoty blocks --- app/Lib/Editor/ConditionResolver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Lib/Editor/ConditionResolver.php b/app/Lib/Editor/ConditionResolver.php index 713c92b3..171a6a7f 100644 --- a/app/Lib/Editor/ConditionResolver.php +++ b/app/Lib/Editor/ConditionResolver.php @@ -16,6 +16,6 @@ abstract class ConditionResolver */ public function make(array $content): array { - return array_filter($content['blocks'], fn ($block) => $this->filterBlock($block)); + return array_filter(data_get($content, 'blocks', []), fn ($block) => $this->filterBlock($block)); } }