Fix motion tiles filter

Fixes an error where motion tile filter could not be applied due
to changing category filter definition
This commit is contained in:
Sean Engelhardt 2019-11-04 15:23:49 +01:00
parent b867b02e28
commit 24359450c7

View File

@ -283,7 +283,7 @@ export class MotionListComponent extends BaseListViewComponent<ViewMotion> imple
.sort((a, b) => a.weight - b.weight)
.map(category => {
return {
filter: 'category',
filter: 'category_id',
name: category.name,
condition: category.id,
amountOfMotions: category.totalAmountOfMotions,
@ -315,7 +315,7 @@ export class MotionListComponent extends BaseListViewComponent<ViewMotion> imple
this.addToTileInfo('Favorites', 'star', true, favoriteMotions);
this.addToTileInfo('Personal notes', 'hasNotes', true, motionsWithNotes);
this.addToTileInfo('No category', 'category', null, motionsWithoutCategory);
this.addToTileInfo('No category', 'category_id', null, motionsWithoutCategory);
this.createCategoryTiles(Array.from(localCategories));