Skip to content

Commit

Permalink
Update DataUriAdapter.php
Browse files Browse the repository at this point in the history
Added check if `dataUri` is present
  • Loading branch information
Corepex authored Jan 7, 2025
1 parent 05814a2 commit 84131d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Asset/Updater/Adapter/DataUriAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

public function update(ElementInterface $element, array $data): void
{
if (!$element instanceof Asset) {
if (!$element instanceof Asset || !array_key_exists($this->getIndexKey(), $data)) {
return;
}

Expand Down

0 comments on commit 84131d0

Please sign in to comment.