compare now with null check
This commit is contained in:
parent
8ce54d0766
commit
9e88b973fb
@ -20,7 +20,7 @@ export const TodoList = (props: {
|
|||||||
return t.status == false;
|
return t.status == false;
|
||||||
})
|
})
|
||||||
.sort((a, b) => a.created - b.created)
|
.sort((a, b) => a.created - b.created)
|
||||||
.sort((a, b) => b.priority.localeCompare(a.priority));
|
.sort((a, b) => b.priority?.localeCompare(a.priority));
|
||||||
}, [props.todos, props.hideDone]);
|
}, [props.todos, props.hideDone]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user