More general code clean up. More removing of the _random bits.
This commit is contained in:
@@ -198,7 +198,7 @@
|
||||
});
|
||||
|
||||
local_ids = local_results
|
||||
.map((e) => e.id || e.journal_entry_id_random)
|
||||
.map((e) => e.id || e.journal_entry_id)
|
||||
.filter(Boolean);
|
||||
|
||||
if (current_search_id === last_search_id) {
|
||||
@@ -235,7 +235,7 @@
|
||||
if (current_search_id === last_search_id) {
|
||||
const api_results = results || [];
|
||||
const api_ids = api_results
|
||||
.map((e: any) => e.id || e.journal_entry_id_random)
|
||||
.map((e: any) => e.id || e.journal_entry_id)
|
||||
.filter(Boolean);
|
||||
|
||||
// Protect UI cache if API returns empty during revalidation
|
||||
|
||||
Reference in New Issue
Block a user