fix: item proxy

This commit is contained in:
cha0s 2024-06-25 09:04:07 -05:00
parent f558bfd08d
commit 4ba38af246

View File

@ -60,7 +60,7 @@ export default function(Component) {
const instance = this;
const proxy = new Proxy(item, {
set(target, property, value) {
target[property] = value;
slots[slot][property] = value;
if ('qty' === property && value <= 0) {
Component.markChange(instance.entity, 'slotChange', {[slot]: false});
delete slots[slot];