mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Insert custom prompts to the start of the list
This commit is contained in:
@ -776,7 +776,7 @@ class PromptManager {
|
|||||||
const promptOrder = this.getPromptOrderForCharacter(character);
|
const promptOrder = this.getPromptOrderForCharacter(character);
|
||||||
const index = promptOrder.findIndex(entry => entry.identifier === prompt.identifier);
|
const index = promptOrder.findIndex(entry => entry.identifier === prompt.identifier);
|
||||||
|
|
||||||
if (-1 === index) promptOrder.push({ identifier: prompt.identifier, enabled: false });
|
if (-1 === index) promptOrder.unshift({ identifier: prompt.identifier, enabled: false });
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user