Skip to content

Commit

Permalink
fixed lib version data
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku committed Nov 13, 2024
1 parent 1108c24 commit 57a8c2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webpack/caniuse/data-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default class CanIUseDataGenPlugin {
for (let firmware of firmwares) {
const override = feature.version_override && (firmware.major in feature.version_override ?
feature.version_override?.[firmware.major] : feature.version_override?.default);
const version = override !== undefined ? override : (await featureVersion(feature, firmware))?.format();
const version = override ? override : (await featureVersion(feature, firmware))?.format();
if (version) {
entry.versions[firmware.major] = version;
}
Expand Down

0 comments on commit 57a8c2f

Please sign in to comment.