commit: 3799983d4f89cad4dbf4595f49a768a66b72b07e
parent 3f04ebd89ac889c39da7f652d77426c6b690ae53
Author: Henry Jameson <me@hjkos.com>
Date: Tue, 29 Mar 2022 12:41:34 +0300
fix production build's reply not working in tree mode
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/components/status/status.js b/src/components/status/status.js
@@ -69,7 +69,7 @@ const controlledOrUncontrolledGetters = list => list.reduce((res, name) => {
const controlledName = `controlled${camelized}`
const uncontrolledName = `uncontrolled${camelized}`
res[name] = function () {
- return (Object.getOwnPropertyDescriptor(this, toggle) && this[toggle]) ? this[controlledName] : this[uncontrolledName]
+ return (this.$props[toggle] && this[toggle]) ? this[controlledName] : this[uncontrolledName]
}
return res
}, {})
diff --git a/src/components/status_content/status_content.js b/src/components/status_content/status_content.js
@@ -31,7 +31,7 @@ const controlledOrUncontrolledGetters = list => list.reduce((res, name) => {
const controlledName = `controlled${camelized}`
const uncontrolledName = `uncontrolled${camelized}`
res[name] = function () {
- return (Object.getOwnPropertyDescriptor(this, toggle) && this[toggle]) ? this[controlledName] : this[uncontrolledName]
+ return (this.$props[toggle] && this[toggle]) ? this[controlledName] : this[uncontrolledName]
}
return res
}, {})