diff options
| author | XhmikosR <[email protected]> | 2020-06-26 18:50:04 +0300 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2020-07-12 15:52:25 +0300 |
| commit | 6d86b140f96049661675cfd83d219b4b82385e36 (patch) | |
| tree | 6b7d5aad12ec8c71067bd623db3b28c164da039f /js/src/scrollspy.js | |
| parent | a67231ae1c352c37a278ac501d7ffb91b1eb20c7 (diff) | |
| download | bootstrap-6d86b140f96049661675cfd83d219b4b82385e36.tar.xz bootstrap-6d86b140f96049661675cfd83d219b4b82385e36.zip | |
Add parentheses around multiple spread conditions
Diffstat (limited to 'js/src/scrollspy.js')
| -rw-r--r-- | js/src/scrollspy.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/scrollspy.js b/js/src/scrollspy.js index 6f7dd04f2..108b6f067 100644 --- a/js/src/scrollspy.js +++ b/js/src/scrollspy.js @@ -160,7 +160,7 @@ class ScrollSpy { _getConfig(config) { config = { ...Default, - ...typeof config === 'object' && config ? config : {} + ...(typeof config === 'object' && config ? config : {}) } if (typeof config.target !== 'string' && isElement(config.target)) { |
