This commit is contained in:
Peng Lyu 2022-12-15 12:28:52 -08:00 committed by GitHub
parent 5b0a8801a0
commit 0b95239ffd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -269,11 +269,6 @@ export class FindInput extends Widget {
}
public setAdditionalToggles(toggles: Toggle[] | undefined): void {
// Short circuit if there are no toggles to update
if (!this.additionalToggles.length && !toggles?.length) {
return;
}
for (const currentToggle of this.additionalToggles) {
currentToggle.domNode.remove();
}