Skip to content

Commit

Permalink
Fix when elementId is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasBr committed Nov 23, 2023
1 parent 6a18b27 commit a3f95ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MetaData/Extractor/IntegratorExtractor.php
Expand Up @@ -55,7 +55,7 @@ public function updateMetaData(mixed $element, ?string $locale, SeoMetaDataInter
$elementType = 'document';
}

if ($elementType === null) {
if ($elementType === null || !$elementId) {
return;
}

Expand Down

0 comments on commit a3f95ff

Please sign in to comment.