Skip to content

Commit

Permalink
Merge branch 'develop' into feature/CXSPA-3919
Browse files Browse the repository at this point in the history
  • Loading branch information
Melody-zhou-512 committed Jan 15, 2025
2 parents 2ba85c7 + e7b7e65 commit 4cb6c1f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ export class OpfResourceLoaderService {
keyValueList?.forEach((keyValue: OpfKeyValueMap) => {
attributes[keyValue.key] = keyValue.value;
});
if (attributes?.[this.OPF_RESOURCE_LOAD_ONCE_ATTRIBUTE_KEY] === 'true') {
if (
!attributes?.[this.OPF_RESOURCE_LOAD_ONCE_ATTRIBUTE_KEY] ||
attributes[this.OPF_RESOURCE_LOAD_ONCE_ATTRIBUTE_KEY] !== 'true'
) {
attributes[this.OPF_RESOURCE_ATTRIBUTE_KEY] = 'true';
}
delete attributes?.[this.OPF_RESOURCE_LOAD_ONCE_ATTRIBUTE_KEY];
Expand Down

0 comments on commit 4cb6c1f

Please sign in to comment.