Fix the template page
This commit is contained in:
@@ -145,22 +145,25 @@ Stream<void> watchTransactionTemplates(Account account) {
|
||||
.transactionTemplates
|
||||
.filter()
|
||||
.account((q) => q.idEqualTo(account.id))
|
||||
.recurringEqualTo(false)
|
||||
.watchLazy(fireImmediately: true);
|
||||
}
|
||||
|
||||
Future<List<TransactionTemplate>> getTransactionTemplates(Account? account) {
|
||||
Future<List<TransactionTemplate>> getTransactionTemplates(
|
||||
Account? account,
|
||||
) async {
|
||||
if (account == null) {
|
||||
return Future.value([]);
|
||||
}
|
||||
|
||||
return GetIt.I
|
||||
.get<Isar>()
|
||||
.transactionTemplates
|
||||
.filter()
|
||||
.account((q) => q.idEqualTo(account.id))
|
||||
.recurringEqualTo(false)
|
||||
.findAll();
|
||||
final a =
|
||||
await GetIt.I
|
||||
.get<Isar>()
|
||||
.transactionTemplates
|
||||
.filter()
|
||||
.account((q) => q.idEqualTo(account.id))
|
||||
.findAll();
|
||||
|
||||
return a;
|
||||
}
|
||||
|
||||
Stream<void> watchTransactions(Account account) {
|
||||
|
||||
Reference in New Issue
Block a user