From c9db39728337f991ad7399709041acfd38892661 Mon Sep 17 00:00:00 2001 From: Michael Aerni Date: Thu, 20 Feb 2025 12:34:57 -0500 Subject: [PATCH] Gracefully handle empty options --- src/Fields/Properties/WithOptions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fields/Properties/WithOptions.php b/src/Fields/Properties/WithOptions.php index b9082f59..410f50ea 100644 --- a/src/Fields/Properties/WithOptions.php +++ b/src/Fields/Properties/WithOptions.php @@ -8,7 +8,7 @@ trait WithOptions { protected function optionsProperty(?array $options = null): array { - $options = $options ?? $this->field->get('options'); + $options = $options ?? $this->field->get('options', []); if (Arr::isAssoc($options)) { return collect($options)