Missed one

This commit is contained in:
Scott Idem
2025-11-13 15:12:17 -05:00
parent fb634268c1
commit 4093afe4fc

View File

@@ -10,7 +10,7 @@ import type { Dexie, Table } from 'dexie';
function find_object_id(obj: any, table_name: string, log_lvl: number): string | number | undefined {
const potential_keys = ['id', `${table_name}_id`, `${table_name}_id_random`];
for (const key of potentialKeys) {
for (const key of potential_keys) {
if (obj[key]) {
if (key !== 'id' && log_lvl > 0) {
console.warn(