summaryrefslogtreecommitdiffstats
path: root/client/components/sidebar
diff options
context:
space:
mode:
authorMarc Hartmayer <hello@hartmayer.com>2020-05-24 12:37:54 +0200
committerMarc Hartmayer <hello@hartmayer.com>2020-05-24 12:44:14 +0200
commitb2fee6a6c196f2ed2788444ad2387fba8f6df9cb (patch)
treed4b90757af23c3afa7e41b15f0bf2f60673d9178 /client/components/sidebar
parent06515559a62a9caea7e31326c381dac0d40f710b (diff)
downloadwekan-b2fee6a6c196f2ed2788444ad2387fba8f6df9cb.tar.gz
wekan-b2fee6a6c196f2ed2788444ad2387fba8f6df9cb.tar.bz2
wekan-b2fee6a6c196f2ed2788444ad2387fba8f6df9cb.zip
Use an arrow function inside forEach() instead of an anonymous function
Suggested by deepcode.ai.
Diffstat (limited to 'client/components/sidebar')
-rw-r--r--client/components/sidebar/sidebar.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/components/sidebar/sidebar.js b/client/components/sidebar/sidebar.js
index 0e535041..7b14c1e0 100644
--- a/client/components/sidebar/sidebar.js
+++ b/client/components/sidebar/sidebar.js
@@ -653,7 +653,7 @@ BlazeComponent.extendComponent({
'subtext-with-parent',
'no-parent',
];
- options.forEach(function(element) {
+ options.forEach(element => {
if (element !== value) {
$(`#${element} ${MCB}`).toggleClass(CKCLS, false);
$(`#${element}`).toggleClass(CKCLS, false);