aboutsummaryrefslogtreecommitdiff
path: root/src/components/status_content/status_content.js
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2022-03-28 17:37:26 +0300
committerHenry Jameson <me@hjkos.com>2022-03-28 17:37:26 +0300
commit4b630c3c36518853489009c27602bdae392b4c94 (patch)
tree7a047e292f5d40a845296fd1e9920741c979928b /src/components/status_content/status_content.js
parentbdd240a2308ee729680a7e9d0cf7d801dfdbe4cc (diff)
fix warnings
Diffstat (limited to 'src/components/status_content/status_content.js')
-rw-r--r--src/components/status_content/status_content.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/status_content/status_content.js b/src/components/status_content/status_content.js
index cf72ccb8..0200382b 100644
--- 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 this[toggle] ? this[controlledName] : this[uncontrolledName]
+ return (Object.getOwnPropertyDescriptor(this, toggle) && this[toggle]) ? this[controlledName] : this[uncontrolledName]
}
return res
}, {})