Skip to content
This repository has been archived by the owner on Feb 24, 2022. It is now read-only.

Commit

Permalink
fix: simplify serialization of pod objects
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremydw committed Feb 21, 2022
1 parent 34e0797 commit 3c3a38b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/page-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,12 @@ export class PageBuilder {
if (value?.constructor?.name === 'Pod' && value.root) {
return undefined;
}
if (value?.constructor?.name === 'Locale' && value.podPath) {
return (value as Locale).id;
}
if (value?.constructor?.name === 'Url' && value.podPath) {
return (value as Url).toString();
}
return value;
}), 2);
}
Expand Down

0 comments on commit 3c3a38b

Please sign in to comment.