mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix QR context error on no set chosen
This commit is contained in:
@ -82,7 +82,7 @@ export class QuickReply {
|
|||||||
|
|
||||||
|
|
||||||
get hasContext() {
|
get hasContext() {
|
||||||
return this.contextList && this.contextList.length > 0;
|
return this.contextList && this.contextList.filter(it => it.set).length > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -40,6 +40,7 @@ export class ContextMenu {
|
|||||||
children: [],
|
children: [],
|
||||||
};
|
};
|
||||||
qr.contextList.forEach((cl) => {
|
qr.contextList.forEach((cl) => {
|
||||||
|
if (!cl.set) return;
|
||||||
if (!hierarchy.includes(cl.set)) {
|
if (!hierarchy.includes(cl.set)) {
|
||||||
const nextHierarchy = [...hierarchy, cl.set];
|
const nextHierarchy = [...hierarchy, cl.set];
|
||||||
const nextLabelHierarchy = [...labelHierarchy, tree.label];
|
const nextLabelHierarchy = [...labelHierarchy, tree.label];
|
||||||
|
Reference in New Issue
Block a user