mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Fix for issue 281
This commit is contained in:
@@ -239,6 +239,7 @@ function create_options(action) {
|
|||||||
var table = document.createElement("div");
|
var table = document.createElement("div");
|
||||||
table.classList.add("sequences");
|
table.classList.add("sequences");
|
||||||
//Add Redo options
|
//Add Redo options
|
||||||
|
let added_options=0;
|
||||||
i=0;
|
i=0;
|
||||||
for (item of action.action.Options) {
|
for (item of action.action.Options) {
|
||||||
if ((item['Previous Selection'])) {
|
if ((item['Previous Selection'])) {
|
||||||
@@ -270,6 +271,7 @@ function create_options(action) {
|
|||||||
row.append(textcell);
|
row.append(textcell);
|
||||||
row.append(iconcell);
|
row.append(iconcell);
|
||||||
table.append(row);
|
table.append(row);
|
||||||
|
added_options+=1;
|
||||||
}
|
}
|
||||||
i+=1;
|
i+=1;
|
||||||
}
|
}
|
||||||
@@ -305,10 +307,13 @@ function create_options(action) {
|
|||||||
row.append(textcell);
|
row.append(textcell);
|
||||||
row.append(iconcell);
|
row.append(iconcell);
|
||||||
table.append(row);
|
table.append(row);
|
||||||
|
added_options+=1;
|
||||||
}
|
}
|
||||||
i+=1;
|
i+=1;
|
||||||
}
|
}
|
||||||
option_chunk.append(table);
|
if (added_options > 0) {
|
||||||
|
option_chunk.append(table);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//make sure our last updated chunk is in view
|
//make sure our last updated chunk is in view
|
||||||
|
Reference in New Issue
Block a user