From 63be2e38438e26f65430948dcd3b249de84dfcd2 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sun, 14 Mar 2021 15:27:54 +0100 Subject: [PATCH] Fix cache issue --- lib/helpers/serialization/base_serialization_helper.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/helpers/serialization/base_serialization_helper.dart b/lib/helpers/serialization/base_serialization_helper.dart index 4be764d..b49fcee 100644 --- a/lib/helpers/serialization/base_serialization_helper.dart +++ b/lib/helpers/serialization/base_serialization_helper.dart @@ -105,7 +105,7 @@ abstract class BaseSerializationHelper { await _loadCache(); // Insert or replace the element - _cache.where((element) => !isToReplace(element)).toList(); + _cache = _cache.where((element) => !isToReplace(element)).toList(); _cache.add(newEl); _cache.sort();