Fix WI position selector if entry.position is empty

This commit is contained in:
Cohee
2025-05-25 21:36:21 +03:00
parent 939e5003e8
commit c528940a45

View File

@@ -3055,7 +3055,7 @@ export async function getWorldEntry(name, data, entry) {
const roleValue = entry.position === world_info_position.atDepth ? String(entry.role ?? extension_prompt_roles.SYSTEM) : '';
template
.find(`select[name="position"] option[value=${entry.position}][data-role="${roleValue}"]`)
.find(`select[name="position"] option[value="${entry.position}"][data-role="${roleValue}"]`)
.prop('selected', true)
.trigger('input');