diff --git a/apps/web/src/app.js b/apps/web/src/app.js index b9a399983..2e77e9a9a 100644 --- a/apps/web/src/app.js +++ b/apps/web/src/app.js @@ -185,7 +185,7 @@ function App() { color: COLORS[color.title], title: toTitleCase(color.title), icon: Icon.Circle, - count: color.count + count: color.noteIds.length }} /> ); diff --git a/apps/web/src/views/Tags.js b/apps/web/src/views/Tags.js index 57014c011..e1c8f044b 100644 --- a/apps/web/src/views/Tags.js +++ b/apps/web/src/views/Tags.js @@ -26,14 +26,14 @@ const Tags = props => { type="tags" items={tags} item={(index, item) => { - const { title, count } = item; + const { title, noteIds } = item; return ( } - info={`${count} notes`} + info={`${noteIds.length} notes`} onClick={() => { setSelectedContext({ type: "tag", value: title }); props.navigator.navigate("notes", { diff --git a/apps/web/yarn.lock b/apps/web/yarn.lock index 4cd198d45..01fdd3598 100644 --- a/apps/web/yarn.lock +++ b/apps/web/yarn.lock @@ -6905,7 +6905,7 @@ normalize-url@^3.0.0, normalize-url@^3.0.1: "notes-core@git+ssh://git@github.com:thecodrr/notes-core.git": version "1.2.0" - resolved "git+ssh://git@github.com:thecodrr/notes-core.git#414d6c3a5767e5ea396f23e293b8524bcd1f4fdb" + resolved "git+ssh://git@github.com:thecodrr/notes-core.git#0f33ad84b60f4805d2adb9a65f11dd4c2690c315" dependencies: fast-sort "^2.0.1" fuzzysearch "^1.0.3"