Skip to content

Commit 03c0bdc

Browse files
committed
Consistent table style.
1 parent 47d9397 commit 03c0bdc

File tree

1 file changed

+1
-1
lines changed
  • demos/nextjs-supabase-todolist/src/app/views/todo-lists/edit

1 file changed

+1
-1
lines changed

demos/nextjs-supabase-todolist/src/app/views/todo-lists/edit/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const TodoEditSection = () => {
3939
listID
4040
]);
4141

42-
const todos = usePowerSyncWatchedQuery<TodoRecord>(`SELECT * FROM todos WHERE list_id=?`, [listID]);
42+
const todos = usePowerSyncWatchedQuery<TodoRecord>(`SELECT * FROM ${TODOS_TABLE} WHERE list_id=? ORDER BY created_at DESC, id`, [listID]);
4343

4444
const [showPrompt, setShowPrompt] = React.useState(false);
4545
const nameInputRef = React.createRef<HTMLInputElement>();

0 commit comments

Comments
 (0)