diff options
author | XhmikosR <xhmikosr@gmail.com> | 2020-07-14 17:46:55 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2020-09-21 14:58:34 +0300 |
commit | 31eb1088112567035d27c82649a9b909b392daf9 (patch) | |
tree | 34ba49d167ee3c4612fe196538514603babdace7 /js/src/collapse.js | |
parent | b31046aab36ea1e476ff384f585ef650c8158d1e (diff) |
Add parentheses around multiple spread conditions
Diffstat (limited to 'js/src/collapse.js')
-rw-r--r-- | js/src/collapse.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/collapse.js b/js/src/collapse.js index 6052995153..3d00c49659 100644 --- a/js/src/collapse.js +++ b/js/src/collapse.js @@ -329,7 +329,7 @@ class Collapse { const _config = { ...Default, ...$element.data(), - ...typeof config === 'object' && config ? config : {} + ...(typeof config === 'object' && config ? config : {}) } if (!data && _config.toggle && typeof config === 'string' && /show|hide/.test(config)) { |