fix(events): Fix pres mgmt reports data loading and field mapping
- Fix session detail page params not being passed to component (causing undefined session_id) - Fix wrapper components discarding API enriched data by re-fetching from IDB - Fix event_file, event_session, event_presenter wrappers to preserve API data - Add optional chaining for hash_sha256 field to prevent undefined crashes - Fix search__event_file to always process API results before returning - Ensures hosted_file_size -> file_size field mapping for reports - All pres mgmt reports (files, sessions, presenters) now work on cold-start
This commit is contained in:
@@ -117,11 +117,11 @@
|
||||
);
|
||||
csv_row.push(ae_obj_li[i].extension ? ae_obj_li[i].extension : '');
|
||||
csv_row.push(
|
||||
ae_obj_li[i].file_size
|
||||
? ae_util.format_bytes(ae_obj_li[i].file_size)
|
||||
ae_obj_li[i].file_size || ae_obj_li[i].hosted_file_size
|
||||
? ae_util.format_bytes(ae_obj_li[i].file_size || ae_obj_li[i].hosted_file_size)
|
||||
: ''
|
||||
);
|
||||
csv_row.push(ae_obj_li[i].hash_sha256.slice(0, 10) + '...');
|
||||
csv_row.push(ae_obj_li[i].hash_sha256?.slice(0, 10) ?? 'N/A');
|
||||
csv_row.push(
|
||||
ae_obj_li[i].created_on
|
||||
? ae_util.iso_datetime_formatter(
|
||||
@@ -455,7 +455,7 @@
|
||||
event_file_obj?.filename
|
||||
)}&key={$ae_api.account_id}"
|
||||
class="btn btn-sm p-1 preset-tonal-secondary *:hover:inline lg:text-xs underline"
|
||||
title={`Download this file:\n${ae_util.clean_filename(event_file_obj?.filename)}\n[API] SHA256: ${event_file_obj?.hash_sha256.slice(0, 10)}...\nHosted ID: ${event_file_obj?.hosted_file_id} Event File ID: ${event_file_obj?.event_file_id}`}
|
||||
title={`Download this file:\n${ae_util.clean_filename(event_file_obj?.filename)}\n[API] SHA256: ${event_file_obj?.hash_sha256?.slice(0, 10) ?? 'N/A'}\nHosted ID: ${event_file_obj?.hosted_file_id} Event File ID: ${event_file_obj?.event_file_id}`}
|
||||
>
|
||||
<span class="fas fa-download mx-1"
|
||||
></span>
|
||||
@@ -549,7 +549,7 @@
|
||||
</td>
|
||||
<td class="px-4 py-2"
|
||||
>{ae_util.format_bytes(
|
||||
event_file_obj?.file_size
|
||||
event_file_obj?.file_size || event_file_obj?.hosted_file_size
|
||||
)}</td
|
||||
>
|
||||
<td class="px-4 py-2">
|
||||
|
||||
Reference in New Issue
Block a user