Fix: Resolve type errors and cleanup window.location.reload calls

This commit is contained in:
Scott Idem
2026-01-22 20:18:29 -05:00
parent c81ce50a00
commit a8e9c39ac6
5 changed files with 57 additions and 52 deletions

View File

@@ -76,7 +76,7 @@
// *** Set initial variables
let ae_promises: key_val = $state({}); // Promise<any>;
let patch_result: null | Promise<any> | key_val | string = $state();
let patch_result: null | Promise<any> | key_val | string | undefined = $state();
let original_field_value = $state(field_value);
@@ -118,17 +118,17 @@
// let params = {};
ae_promises.api_update__ae_obj = core_func
.handle_update_ae_obj_id_crud({
.update_ae_obj_id_crud({
api_cfg: api_cfg,
object_type: object_type,
object_id: object_id,
field_name: field_name,
new_field_value: new_field_value,
field_value: new_field_value,
key: api_cfg?.api_crud_super_key ?? '', // Extract key from api_cfg if available
params: {},
try_cache: false,
log_lvl: 0
})
.then(function (results) {
.then(function (results: any) {
console.log('Field PATCH Promise', results);
if (results) {