Skip to content

Commit

Permalink
Fix createAsset mutation failure where tag id expects integer
Browse files Browse the repository at this point in the history
  • Loading branch information
natted committed Oct 25, 2023
1 parent c53a521 commit 6e85aa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GraphQL/Traits/ElementTagTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected function getTagsFromInput(array $input)
$tags = [];
foreach ($input as $tag_input) {
if (isset($tag_input['id']) && $tag_input['id']) {
$tag = Tag::getById($tag_input['id']);
$tag = Tag::getById((int)$tag_input['id']);
} elseif (isset($tag_input['path']) && $tag_input['path']) {
$tag = Tag::getByPath($tag_input['path']);
} else {
Expand Down

0 comments on commit 6e85aa0

Please sign in to comment.