Missed one
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user