Skip to content

Commit

Permalink
Check if default exists or not
Browse files Browse the repository at this point in the history
  • Loading branch information
achyutkneupane committed Dec 31, 2024
1 parent c9e7835 commit 4aee913
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ public function getFormComponents(?string $model = null, array $exceptColumns =
)
);
$componentData['options'] = [$options];
$componentData['default'] = [$this->parseDefaultExpression($column, $model)];
if ($column['default']) {
$componentData['default'] = [$this->parseDefaultExpression($column, $model)];
}
}

if (str($componentName)->endsWith('_id')) {
Expand Down

0 comments on commit 4aee913

Please sign in to comment.