Fix palette collapse/expand handles

This commit is contained in:
BoykoAlex
2018-09-10 16:55:45 -04:00
parent 6f4b32f5f2
commit 740e3282ef

View File

@@ -141,7 +141,9 @@ export class Palette implements OnInit, OnDestroy, OnChanges {
}
this.clickedElement = undefined;
$('#palette-floater').remove();
this.floaterpaper.remove();
if (this.floaterpaper) {
this.floaterpaper.remove();
}
});
// Toggle the header open/closed on a click