mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
Multiple checks for pinnedItems (#11031)
* remove null/undefined entries from pinnedItems when an item is toggled - more inner checks + test * drawer: fix when there isn't a page available * rollback cleaning up pinnedEntries on item-toggle * remove "re-setting" pinnedItems * remove the filter
This commit is contained in:
@@ -174,7 +174,9 @@ export default {
|
||||
let minPaddingBottom = 20;
|
||||
let drawerHeight = this.$el.offsetHeight;
|
||||
let standardPage = document.getElementsByClassName('standard-page')[0];
|
||||
standardPage.style.paddingBottom = `${drawerHeight + minPaddingBottom}px`;
|
||||
if (standardPage) {
|
||||
standardPage.style.paddingBottom = `${drawerHeight + minPaddingBottom}px`;
|
||||
}
|
||||
},
|
||||
toggle () {
|
||||
this.open = !this.isOpen;
|
||||
|
||||
Reference in New Issue
Block a user