Fixed condition default
continuous-integration/drone/push Build is failing Details
continuous-integration/drone/tag Build is passing Details

This commit is contained in:
philipp lang 2024-07-12 19:18:35 +02:00
parent ad7fe80236
commit 248499dc60
1 changed files with 1 additions and 1 deletions

View File

@ -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