From 24359450c78144822abb4d16537b0582832140f0 Mon Sep 17 00:00:00 2001 From: Sean Engelhardt Date: Mon, 4 Nov 2019 15:23:49 +0100 Subject: [PATCH] Fix motion tiles filter Fixes an error where motion tile filter could not be applied due to changing category filter definition --- .../components/motion-list/motion-list.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/app/site/motions/modules/motion-list/components/motion-list/motion-list.component.ts b/client/src/app/site/motions/modules/motion-list/components/motion-list/motion-list.component.ts index 63234c973..dac56e8e7 100644 --- a/client/src/app/site/motions/modules/motion-list/components/motion-list/motion-list.component.ts +++ b/client/src/app/site/motions/modules/motion-list/components/motion-list/motion-list.component.ts @@ -283,7 +283,7 @@ export class MotionListComponent extends BaseListViewComponent 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 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));