Skip to content

Commit 68e6a80

Browse files
authored
fix plan instances (#49)
1 parent eaa3a46 commit 68e6a80

File tree

4 files changed

+1674
-1217
lines changed

4 files changed

+1674
-1217
lines changed

package-lock.json

Lines changed: 37 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/core/pipe/fuzzy-search.pipe.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ export class FuzzySearchPipe implements PipeTransform {
3838
keys: searchFields
3939
};
4040

41-
const fuse: Fuse<T> = new Fuse(items, options);
42-
const filteredItems: T[] = fuse.search(searchTerm);
41+
const fuse: Fuse<T, FuseOptions<T>> = new Fuse(items, options);
42+
const filteredItems = fuse.search(searchTerm) as T[];
4343

4444
console.log('[fuzzy-search.pipe] Filtered Items:', filteredItems);
4545
return filteredItems;

src/app/core/service/application-instance-management.service.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,9 @@ export class ApplicationInstanceManagementService {
149149
// we got an array of plan instances for each plan, so we have to merge all these arrays to one
150150
let resultAry: Array<PlanInstance> = [];
151151
for (const instAry of result) {
152-
resultAry = resultAry.concat(instAry);
152+
if (instAry) {
153+
resultAry = resultAry.concat(instAry);
154+
}
153155
}
154156
return resultAry;
155157
})

0 commit comments

Comments
 (0)