Backfill imported bias entry ids
| @@ -3733,6 +3733,9 @@ async function onLogitBiasPresetImportFileChange(e) { | |||
| 3733 | if (typeof entry == 'object' && entry !== null) { | 3733 | if (typeof entry == 'object' && entry !== null) { |
| 3734 | if (Object.hasOwn(entry, 'text') && | 3734 | if (Object.hasOwn(entry, 'text') && |
| 3735 | Object.hasOwn(entry, 'value')) { | 3735 | Object.hasOwn(entry, 'value')) { |
| 3736 | if (!entry.id) { | ||
| 3737 | entry.id = uuidv4(); | ||
| 3738 | } | ||
| 3736 | validEntries.push(entry); | 3739 | validEntries.push(entry); |
| 3737 | } | 3740 | } |
| 3738 | } | 3741 | } |