1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-10-05 09:41:48 +02: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

View File

@@ -155,7 +155,7 @@ class ScrollSpy {
_getConfig(config) {
config = {
...Default,
...typeof config === 'object' && config ? config : {}
...(typeof config === 'object' && config ? config : {})
}
if (typeof config.target !== 'string' && Util.isElement(config.target)) {