Skip to content

Commit

Permalink
check if SXA site based on item
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillVolovitskiy committed Sep 6, 2019
1 parent fcec0dc commit d4a0cf1
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -22,7 +22,7 @@ public void Process(ResolveRenderingDatasourceArgs args)
Item contextItem = args.GetContextItem();
if (contextItem != null)
{
if (!ServiceLocator.ServiceProvider.GetService<IContext>().Site.IsSxaSite())
if (!contextItem.IsSxaSite())
{
return;
}
Expand Down

0 comments on commit d4a0cf1

Please sign in to comment.