diff --git a/Classes/Form/Element/SnippetPreview.php b/Classes/Form/Element/SnippetPreview.php index b868aab3..c5f3557c 100644 --- a/Classes/Form/Element/SnippetPreview.php +++ b/Classes/Form/Element/SnippetPreview.php @@ -31,6 +31,10 @@ class SnippetPreview extends AbstractNode public function render(): array { + if ($this->data['command'] === 'new') { + return []; + } + $this->initialize(); $resultArray = $this->initializeResultArray();