Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Scrivito.provideComponent("BlogOverviewWidget", ({ widget }) => {
let { tag } = Scrivito.currentPageParams();
const tags = widget.get("tags");
if (!tag && tags.length) {
tag = tags;
}
return (
);
});