diff options
Diffstat (limited to 'src/api/server/ServerApi.ts')
-rw-r--r-- | src/api/server/ServerApi.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/api/server/ServerApi.ts b/src/api/server/ServerApi.ts index 69994114e..ab6866b13 100644 --- a/src/api/server/ServerApi.ts +++ b/src/api/server/ServerApi.ts | |||
@@ -379,8 +379,7 @@ export default class ServerApi { | |||
379 | .filter(recipe => recipe.id); | 379 | .filter(recipe => recipe.id); |
380 | 380 | ||
381 | // @ts-expect-error Type 'boolean' is not assignable to type 'ConcatArray<IRecipe>'. | 381 | // @ts-expect-error Type 'boolean' is not assignable to type 'ConcatArray<IRecipe>'. |
382 | // eslint-disable-next-line unicorn/prefer-spread | 382 | this.recipes = [...this.recipes, ...this._getDevRecipes()]; |
383 | this.recipes = this.recipes.concat(this._getDevRecipes()); | ||
384 | 383 | ||
385 | debug('StubServerApi::getInstalledRecipes resolves', this.recipes); | 384 | debug('StubServerApi::getInstalledRecipes resolves', this.recipes); |
386 | return this.recipes; | 385 | return this.recipes; |
@@ -582,7 +581,7 @@ export default class ServerApi { | |||
582 | file !== 'temp', | 581 | file !== 'temp', |
583 | ); | 582 | ); |
584 | 583 | ||
585 | const recipes = paths | 584 | const recipes: IRecipe[] = paths |
586 | .map(id => { | 585 | .map(id => { |
587 | try { | 586 | try { |
588 | // eslint-disable-next-line import/no-dynamic-require | 587 | // eslint-disable-next-line import/no-dynamic-require |