From 04714aeebd5ba7cbaf45357e6c98a50d4c389580 Mon Sep 17 00:00:00 2001 From: Mikolaj Kieres Date: Sun, 4 Dec 2022 19:50:28 +1100 Subject: [PATCH] fixing a bug with isBggSynced flag (#154) --- board_games_companion/lib/stores/board_games_store.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board_games_companion/lib/stores/board_games_store.dart b/board_games_companion/lib/stores/board_games_store.dart index e5674636..7d4af6e6 100644 --- a/board_games_companion/lib/stores/board_games_store.dart +++ b/board_games_companion/lib/stores/board_games_store.dart @@ -145,13 +145,13 @@ abstract class _BoardGamesStore with Store { await _boardGamesService.removeBoardGames(bggSyncedBoardGames); await _playthroughService.deletePlaythroughsForGames(bggSyncedBoardGames); - allBoardGames.removeWhere((boardGame) => boardGame.isBggSynced!); + allBoardGames.removeWhere((boardGame) => boardGame.isBggSynced ?? false); } catch (e, stack) { FirebaseCrashlytics.instance.recordError(e, stack); return; } } - +ś @action Future importCollections(String username) async { var importResult = CollectionImportResult();