diff --git a/packages/utils/spec/iconSet/convertInfoSpec.mjs b/packages/utils/spec/iconSet/convertInfoSpec.mjs index f2455e9..dbaddf9 100644 --- a/packages/utils/spec/iconSet/convertInfoSpec.mjs +++ b/packages/utils/spec/iconSet/convertInfoSpec.mjs @@ -70,7 +70,6 @@ describe('Testing convertIconSetInfo', () => { }, height: 24, samples: ['arrow-left', 'arrow-right', 'arrow-up'], - displayHeight: 24, palette: true, }; expect(result).toEqual(expected); @@ -175,7 +174,6 @@ describe('Testing convertIconSetInfo', () => { }, height: 16, samples: ['pushpin', 'pie-chart-outline', 'user-add-outline'], - displayHeight: 16, palette: false, category: 'General', }; diff --git a/packages/utils/src/icon-set/convert-info.ts b/packages/utils/src/icon-set/convert-info.ts index f8baabb..cd8e688 100644 --- a/packages/utils/src/icon-set/convert-info.ts +++ b/packages/utils/src/icon-set/convert-info.ts @@ -212,7 +212,7 @@ export function convertIconSetInfo( if (typeof info.height === 'number') { // Convert from height const displayHeight = validateDisplayHeight(info.height); - if (displayHeight) { + if (displayHeight && displayHeight !== info.height) { info.displayHeight = displayHeight; } } diff --git a/packages/utils/tests/convert-info-test.ts b/packages/utils/tests/convert-info-test.ts index 5b0e242..e4af660 100644 --- a/packages/utils/tests/convert-info-test.ts +++ b/packages/utils/tests/convert-info-test.ts @@ -71,7 +71,6 @@ describe('Testing convertIconSetInfo', () => { }, height: 24, samples: ['arrow-left', 'arrow-right', 'arrow-up'], - displayHeight: 24, palette: true, }; expect(result).toEqual(expected); @@ -176,7 +175,6 @@ describe('Testing convertIconSetInfo', () => { }, height: 16, samples: ['pushpin', 'pie-chart-outline', 'user-add-outline'], - displayHeight: 16, palette: false, category: 'General', }; @@ -279,6 +277,7 @@ describe('Testing convertIconSetInfo', () => { }, samples: ['wrench', 'bell-o', 'user-o'], version: '4.7.0', + height: 16, palette: false, category: 'General', };