From 6d86b140f96049661675cfd83d219b4b82385e36 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Fri, 26 Jun 2020 18:50:04 +0300 Subject: Add parentheses around multiple spread conditions --- js/src/scrollspy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/src/scrollspy.js') diff --git a/js/src/scrollspy.js b/js/src/scrollspy.js index 6f7dd04f27..108b6f067b 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)) { -- cgit v1.2.3