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