Skip to content

Commit

Permalink
Merge pull request #489 from athombv/master
Browse files Browse the repository at this point in the history
mmip #patch
  • Loading branch information
jeroenwienk authored Sep 30, 2024
2 parents 472bd63 + e8cc50c commit 1121359
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/App/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,12 @@ class App {
}
}

if (Array.isArray(appJson.widgets)) {
if (appJson.widgets != null) {
if (semver.lt(semver.coerce(appJson.compatibility), '12.1.0')) {
throw new Error(`App widgets require a compatibility of at least >=12.1.0. (${path})`);
throw new Error(`App widgets require a compatibility of at least >=12.1.0. (${this._path})`);
}

for (const widget of appJson.widgets) {
for (const [widgetId, widget] of Object.entries(appJson.widgets)) {
const apiFilePathMjs = join(this._path, 'widgets', widget.id, 'api.mjs');
const apiFilePathCjs = join(this._path, 'widgets', widget.id, 'api.cjs');

Expand Down

0 comments on commit 1121359

Please sign in to comment.