PerficientDigital / AEM-DataLayer

Simple DataLayer API for Adobe Experience Manager
Apache License 2.0
34 stars 13 forks source link

Fixing adapting from Resource with no super type. #7

Closed rbotha78 closed 5 years ago

rbotha78 commented 6 years ago

Discovered an issue with updateDataLayer method not being called on models that are adapting from Resource, if the resource super type is not set.

Checking if the parent resource type is null before trying to compare it with the grandparent resource type fixes the problem.