mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix WI position selector if entry.position is empty
This commit is contained in:
@@ -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');
|
||||
|
||||
|
Reference in New Issue
Block a user