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; }