Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: fix content search

Steven1894ef161fd4
diff --git a/web/src/pages/Home.tsx b/web/src/pages/Home.tsx
index 33d563d5c..02c963f6b 100644
--- a/web/src/pages/Home.tsx
+++ b/web/src/pages/Home.tsx
@@ -47,14 +47,14 @@ const Home = () => {
setIsRequesting(true);
const filters = [`creator == "${user.name}"`, `row_status == "NORMAL"`, `order_by_pinned == true`];
const contentSearch: string[] = [];
- if (filter.tag) {
- contentSearch.push(JSON.stringify(filter.tag));
+ if (filter.text) {
+ contentSearch.push(JSON.stringify(filter.text));
}
if (contentSearch.length > 0) {
filters.push(`content_search == [${contentSearch.join(", ")}]`);
}
- if (filter.text) {
- filters.push(`tag == "${filter.text}"`);
+ if (filter.tag) {
+ filters.push(`tag == "${filter.tag}"`);
}
if (filter.memoPropertyFilter) {
if (filter.memoPropertyFilter.hasLink) {