Skip to content

Commit 16223f8

Browse files
committed
fix(app-page-builder): improve legacy icon conversion
1 parent 56a2f7f commit 16223f8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/app-page-builder/src/backwardsCompatibility/convertIconSettings.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ const legacyIconIdToName = (id: string[]) => {
1414
};
1515

1616
const convertIconToV2 = (icon: PbElementDataIconV1) => {
17+
if (!icon.id) {
18+
return null;
19+
}
20+
1721
const newIcon = {
1822
icon: {
1923
name: legacyIconIdToName(icon.id),

0 commit comments

Comments
 (0)