Skip to content

Commit 73cc017

Browse files
committed
Filter todos by list
1 parent 0494423 commit 73cc017

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demos/TodoSQLite/Views/TodoListPage.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ protected override async void OnAppearing()
2323
{
2424
base.OnAppearing();
2525

26-
await database.Db.Watch("select * from todos", null, new WatchHandler<TodoItem>
26+
await database.Db.Watch("select * from todos where list_id = ?", [selectedList.ID], new WatchHandler<TodoItem>
2727
{
2828
OnResult = (results) =>
2929
{

0 commit comments

Comments
 (0)