|
|
@ -47,7 +47,6 @@ export default React.memo(function TaskList(props: PropsType) {
|
|
|
|
const potentialEntries = props.entries.filter((x) => showCompleted || !x.finished);
|
|
|
|
const potentialEntries = props.entries.filter((x) => showCompleted || !x.finished);
|
|
|
|
let entries;
|
|
|
|
let entries;
|
|
|
|
|
|
|
|
|
|
|
|
// filter
|
|
|
|
|
|
|
|
const tagPrefix = 'tag:';
|
|
|
|
const tagPrefix = 'tag:';
|
|
|
|
if (filterBy?.startsWith(tagPrefix)) {
|
|
|
|
if (filterBy?.startsWith(tagPrefix)) {
|
|
|
|
const tag = filterBy.slice(tagPrefix.length);
|
|
|
|
const tag = filterBy.slice(tagPrefix.length);
|
|
|
@ -58,7 +57,6 @@ export default React.memo(function TaskList(props: PropsType) {
|
|
|
|
entries = potentialEntries;
|
|
|
|
entries = potentialEntries;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// sort
|
|
|
|
|
|
|
|
const sortedEntries = sortSelector(entries);
|
|
|
|
const sortedEntries = sortSelector(entries);
|
|
|
|
|
|
|
|
|
|
|
|
const itemList = sortedEntries.map((entry) => {
|
|
|
|
const itemList = sortedEntries.map((entry) => {
|
|
|
|