Replace _random archive ID variants with V3 canonical field names
archive_obj.archive_id_random → .archive_id in load function and post-create assignment; remove archive_id_random and hosted_file_id_random from editable fields list — V3 returns the random string as the primary ID field directly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -192,7 +192,7 @@ export async function load_ae_obj_li__archive({
|
||||
if (inc_content_li && archive_obj_li && Array.isArray(archive_obj_li)) {
|
||||
for (let i = 0; i < archive_obj_li.length; i++) {
|
||||
const archive_obj = archive_obj_li[i];
|
||||
const archive_id = archive_obj.archive_id_random;
|
||||
const archive_id = archive_obj.archive_id;
|
||||
|
||||
const content_li = await load_ae_obj_li__archive_content({
|
||||
api_cfg: api_cfg,
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
export const editable_fields__archive_content = [
|
||||
'archive_id',
|
||||
'archive_id_random',
|
||||
'archive_content_type',
|
||||
'name',
|
||||
'description',
|
||||
@@ -9,7 +8,6 @@ export const editable_fields__archive_content = [
|
||||
'url',
|
||||
'url_text',
|
||||
'hosted_file_id',
|
||||
'hosted_file_id_random',
|
||||
'file_path',
|
||||
'filename',
|
||||
'file_extension',
|
||||
|
||||
@@ -178,7 +178,7 @@ async function handle_submit_form(event: any) {
|
||||
}
|
||||
|
||||
$idaa_slct.archive_id =
|
||||
archive_obj_create_result.archive_id_random;
|
||||
archive_obj_create_result.archive_id;
|
||||
$idaa_slct.archive_obj = archive_obj_create_result;
|
||||
|
||||
return update_archive_obj_promise;
|
||||
|
||||
Reference in New Issue
Block a user