Skip to content

Commit

Permalink
🐛 fix: unexpected extensions field assignment
Browse files Browse the repository at this point in the history
Signed-off-by: SimonShiki <[email protected]>
  • Loading branch information
SimonShiki committed Feb 24, 2024
1 parent 0272ded commit b4e1dc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loader/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -607,8 +607,8 @@ class EurekaLoader {
default: {
if ('extensions' in blockInfo) {
const converted = origConvertFunc.call(this, blockInfo, categoryInfo, ...args);
if (!('extensions' in converted.json)) converted.extensions.json = [/*'scratch_extension'*/];
for (const extension of blockInfo.extensions!) {
if (!('extensions' in converted.json)) converted.json = [/*'scratch_extension'*/];
if (!converted.json.extensions.includes(extension)) {
converted.json.extensions.push(extension);
}
Expand Down

0 comments on commit b4e1dc5

Please sign in to comment.