diff --git a/packages/framework/src/Console/Commands/MakePublicationTypeCommand.php b/packages/framework/src/Console/Commands/MakePublicationTypeCommand.php index cdc0e3013ca..c2e9284ffc8 100644 --- a/packages/framework/src/Console/Commands/MakePublicationTypeCommand.php +++ b/packages/framework/src/Console/Commands/MakePublicationTypeCommand.php @@ -86,8 +86,7 @@ protected function captureFieldsDefinitions(): Collection $type = $this->getFieldType(); - if ($type < 10) { - } else { + if ($type === 10) { $fieldData = $this->getFieldDataForTag($fieldData); } $addAnother = $this->askWithValidation('addAnother', 'Add another field (y/n)', ['required', 'string', 'in:y,n'], 'n');