Skip to content

Commit

Permalink
bug fix. ExternalViews where not deserialized correctly on client side
Browse files Browse the repository at this point in the history
  • Loading branch information
tparisi committed Oct 31, 2024
1 parent baf8384 commit 299259c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/client/deserializers/customization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@
import { Timezone } from "chronoshift";
import { ClientCustomization, SerializedCustomization } from "../../common/models/customization/customization";
import { deserialize as deserializeLocale } from "../../common/models/locale/locale";
import { ExternalView } from "../../common/models/external-view/external-view";

export function deserialize(customization: SerializedCustomization): ClientCustomization {
const { headerBackground, messages, locale, customLogoSvg, timezones, externalViews, hasUrlShortener, sentryDSN, visualizationColors } = customization;
return {
headerBackground,
customLogoSvg,
externalViews,
externalViews: externalViews.map(ExternalView.fromJS),
hasUrlShortener,
sentryDSN,
messages,
Expand Down

0 comments on commit 299259c

Please sign in to comment.