diff --git a/BTCPayServer/wwwroot/pos/common.js b/BTCPayServer/wwwroot/pos/common.js index 736f2cf5f..f77a92bb9 100644 --- a/BTCPayServer/wwwroot/pos/common.js +++ b/BTCPayServer/wwwroot/pos/common.js @@ -266,6 +266,7 @@ const posCommon = { return inSearch && inCategories }, updateDisplay() { + if (!this.$refs.posItems) return; this.forEachItem(item => { item.classList[this.displayItem(item) ? 'add' : 'remove']('posItem--displayed') item.classList.remove('posItem--first')