From c6c4f17cfaa14fe79edca29a70cc9bb736f81168 Mon Sep 17 00:00:00 2001 From: LianaHus Date: Thu, 18 Apr 2019 13:33:59 +0200 Subject: [PATCH] fixed error --- src/app/ui/card.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/app/ui/card.js b/src/app/ui/card.js index 0419a53971..0216b356c9 100644 --- a/src/app/ui/card.js +++ b/src/app/ui/card.js @@ -34,9 +34,11 @@ module.exports = class Card { function trigger (el) { var body = self._view.cardBody var status = self._view.statusBar - el.classList.toggle('fa-angle-up') - var arrow = el.classList.toggle('fa-angle-down') ? 'up' : 'down' - self.event.trigger('expandCollapseCard', [arrow, body, status]) + if (el.classList) { + el.classList.toggle('fa-angle-up') + var arrow = el.classList.toggle('fa-angle-down') ? 'up' : 'down' + self.event.trigger('expandCollapseCard', [arrow, body, status]) + } } // HTML