2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-14 18:42:30 +03:00

Add parentheses around multiple spread conditions

This commit is contained in:
XhmikosR
2020-07-14 17:46:55 +03:00
parent b31046aab3
commit 31eb108811
6 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -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)) {