Skip to content

Commit

Permalink
🍺 fix: unexpected 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 b4e1dc5 commit 6170a23
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,7 +607,7 @@ 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'*/];
if (!('extensions' in converted.json)) converted.json.extensions = [/*'scratch_extension'*/];
for (const extension of blockInfo.extensions!) {
if (!converted.json.extensions.includes(extension)) {
converted.json.extensions.push(extension);
Expand Down

0 comments on commit 6170a23

Please sign in to comment.