Backfill imported bias entry ids

This commit is contained in:
Cohee
2024-12-23 00:49:35 +02:00
parent 7f94cb4bee
commit 404a217622

View File

@ -3733,6 +3733,9 @@ async function onLogitBiasPresetImportFileChange(e) {
if (typeof entry == 'object' && entry !== null) {
if (Object.hasOwn(entry, 'text') &&
Object.hasOwn(entry, 'value')) {
if (!entry.id) {
entry.id = uuidv4();
}
validEntries.push(entry);
}
}