Saving initial changes to the Leads v3 project files and directories.
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
// SCENARIO 2: Fallback broad search
|
||||
if (event_id && !$events_loc.leads.qry__search_text) {
|
||||
return await db_events.exhibit
|
||||
.where('event_id_random')
|
||||
.where('event_id')
|
||||
.equals(event_id)
|
||||
.sortBy('name');
|
||||
}
|
||||
@@ -98,7 +98,7 @@
|
||||
if (!remote_first) {
|
||||
try {
|
||||
let local_results = await db_events.exhibit
|
||||
.where('event_id_random')
|
||||
.where('event_id')
|
||||
.equals(event_id)
|
||||
.filter((exhibit) => {
|
||||
if (qry_str) {
|
||||
@@ -135,7 +135,7 @@
|
||||
});
|
||||
|
||||
const local_ids = local_results
|
||||
.map((e) => String(e.id || e.event_exhibit_id_random))
|
||||
.map((e) => String(e.event_exhibit_id))
|
||||
.filter(Boolean);
|
||||
if (current_search_id === last_search_id) {
|
||||
untrack(() => {
|
||||
@@ -180,7 +180,7 @@
|
||||
|
||||
if (current_search_id === last_search_id) {
|
||||
const api_ids = results
|
||||
.map((e: any) => String(e.id || e.event_exhibit_id_random))
|
||||
.map((e: any) => String(e.event_exhibit_id))
|
||||
.filter(Boolean);
|
||||
untrack(() => {
|
||||
exhibit_id_li = api_ids;
|
||||
@@ -219,7 +219,7 @@
|
||||
{#each $lq__event_exhibit_obj_li as exhibit_obj}
|
||||
<a
|
||||
href="/events/{page.params
|
||||
.event_id}/leads/exhibit/{exhibit_obj.id_random}"
|
||||
.event_id}/leads/exhibit/{exhibit_obj.event_exhibit_id}"
|
||||
class="card card-hover p-4 flex flex-col items-center justify-center text-center space-y-2 preset-tonal"
|
||||
>
|
||||
<Store size="2em" />
|
||||
|
||||
Reference in New Issue
Block a user