Skip to content

Commit

Permalink
Fix snippet selection
Browse files Browse the repository at this point in the history
The webspaceKey attribute is null in the previewer, but the key is available in the webspace attribute.

This fixes #51.
  • Loading branch information
ramonbakker committed Nov 28, 2022
1 parent af36456 commit 0e20dfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Document/Structure/ContentProxyFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,6 @@ private function getWebspaceKey(): ?string
return null;
}

return $attributes->getAttribute('webspaceKey');
return $attributes->getAttribute('webspaceKey') ?? $attributes->getAttribute('webspace')->getKey();
}
}

0 comments on commit 0e20dfb

Please # to comment.