Skip to content

Commit

Permalink
store empty entry types props as null in the PC
Browse files Browse the repository at this point in the history
  • Loading branch information
i-just committed Dec 4, 2024
1 parent ca9171d commit 1d9785c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/models/EntryType.php
Original file line number Diff line number Diff line change
Expand Up @@ -364,15 +364,15 @@ public function getConfig(): array
$config = [
'name' => $this->name,
'handle' => $this->handle,
'icon' => $this->icon,
'icon' => $this->icon ?: null,
'color' => $this->color?->value,
'hasTitleField' => $this->hasTitleField,
'titleTranslationMethod' => $this->titleTranslationMethod,
'titleTranslationKeyFormat' => $this->titleTranslationKeyFormat,
'titleFormat' => $this->titleFormat,
'titleTranslationKeyFormat' => $this->titleTranslationKeyFormat ?: null,
'titleFormat' => $this->titleFormat ?: null,
'showSlugField' => $this->showSlugField,
'slugTranslationMethod' => $this->slugTranslationMethod,
'slugTranslationKeyFormat' => $this->slugTranslationKeyFormat,
'slugTranslationKeyFormat' => $this->slugTranslationKeyFormat ?: null,
'showStatusField' => $this->showStatusField,
];

Expand Down

0 comments on commit 1d9785c

Please sign in to comment.