From cceb898b849809b9171e735f2be100f8c38f0abc Mon Sep 17 00:00:00 2001 From: GeorgiyX <34867130+GeorgiyX@users.noreply.github.com> Date: Wed, 1 Dec 2021 18:18:06 +0300 Subject: [PATCH] =?UTF-8?q?LDBR-3.24:=20=D0=98=D1=81=D0=BF=D1=80=D0=B0?= =?UTF-8?q?=D0=B2=D0=B8=D1=82=D1=8C=20=D0=B1=D0=B0=D0=B3=20=D1=81=20=D1=80?= =?UTF-8?q?=D0=B0=D0=B7=D0=B4=D0=B2=D0=BE=D0=B5=D0=BD=D0=B8=D0=B5=20=D1=87?= =?UTF-8?q?=D0=B5=D0=BB=D0=B8=D1=81=D1=82=D0=BE=D0=B2=20=D0=B4=D0=BB=D1=8F?= =?UTF-8?q?=20=D1=81=D0=B2=D0=B5=D0=B6=D0=B5=D0=B9=20=D0=BA=D0=B0=D1=80?= =?UTF-8?q?=D1=82=D0=BE=D1=87=D0=BA=D0=B8=20(#42)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Footer/Footer.scss | 1 - src/stores/BoardStore/BoardStore.js | 13 ++++++------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/components/Footer/Footer.scss b/src/components/Footer/Footer.scss index e743d0e9..9b3549b6 100644 --- a/src/components/Footer/Footer.scss +++ b/src/components/Footer/Footer.scss @@ -3,7 +3,6 @@ @import '../../styles/scss/Common'; /* Таблица стилей для компонента footer */ - .footer { background-color: $main-theme-secondary-color; width: 100%; diff --git a/src/stores/BoardStore/BoardStore.js b/src/stores/BoardStore/BoardStore.js index f2524359..49ec9bfd 100644 --- a/src/stores/BoardStore/BoardStore.js +++ b/src/stores/BoardStore/BoardStore.js @@ -1111,7 +1111,9 @@ class BoardStore extends BaseStore { case HttpStatusCodes.Ok: newCheckList.chlid = payload.data.chlid; context.checkLists.push(newCheckList); - this._getCardById(context.clid, context.cid).check_lists.push(newCheckList); + this._getCardById(context.clid, context.cid).check_lists.push( + JSON.parse(JSON.stringify(newCheckList)), + ); return; default: @@ -1126,11 +1128,7 @@ class BoardStore extends BaseStore { * @private */ _editCheckList(data) { - const checkLists = this._storage.get('card-popup').checkLists; - const checkList = checkLists.find((checkList) => { - return checkList.chlid === data.chlid; - }); - checkList.edit = true; + this._getCheckListById(data.chlid).edit = true; } /** @@ -1238,7 +1236,7 @@ class BoardStore extends BaseStore { checkList.check_list_items.push(newCheckListItem); this._getCardById(context.clid, context.cid).check_lists.find((checkLst) => { return checkLst.chlid === data.chlid; - }).check_list_items.push(newCheckListItem); + }).check_list_items.push(JSON.parse(JSON.stringify(newCheckListItem))); return; default: @@ -1253,6 +1251,7 @@ class BoardStore extends BaseStore { * @private */ _editCheckListItem(data) { + console.log('_editCheckListItem'); this._getCheckListItemById(data.chlid, data.chliid).edit = true; }