// clear editors
this.editors.forEach((editor, typeName) => {
- if (keepEditors.includes(typeName)) {
+ if (!keepEditors.includes(typeName)) {
UiPageAction.remove(`wcfClipboard-${typeName}`);
this.editorDropdowns.get(typeName)!.innerHTML = "";
const keepEditors = Object.keys(data.returnValues.items || {});
// clear editors
this.editors.forEach((editor, typeName) => {
- if (keepEditors.includes(typeName)) {
+ if (!keepEditors.includes(typeName)) {
UiPageAction.remove(`wcfClipboard-${typeName}`);
this.editorDropdowns.get(typeName).innerHTML = "";
}