From 248499dc606fe1b5f6953b46b425f851f685e4d2 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Fri, 12 Jul 2024 19:18:35 +0200 Subject: [PATCH] Fixed condition default --- app/Lib/Editor/Condition.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Lib/Editor/Condition.php b/app/Lib/Editor/Condition.php index c11bb3ac..6c508d7d 100644 --- a/app/Lib/Editor/Condition.php +++ b/app/Lib/Editor/Condition.php @@ -20,7 +20,7 @@ class Condition extends Data public static function fromMedia(Media $media): self { - return $media->getCustomProperty('conditions') ? static::withoutMagicalCreationFrom($media->getCustomProperty('conditions')) : static::default(); + return $media->getCustomProperty('conditions') ? static::withoutMagicalCreationFrom($media->getCustomProperty('conditions')) : static::defaults(); } public static function defaults(): self