Skip to content

Commit 487672d

Browse files
author
JoW
committed
remove code smell.
1 parent 600505a commit 487672d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/application/ApplicationThunks.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,7 @@ export const handleSharedDashboardsThunk = () => (dispatch: any) => {
246246
Array.from(urlParams.entries()).forEach(([key, value]) => {
247247
if (key.startsWith('neodash_')) {
248248
if (key.startsWith('neodash_list_')) {
249-
if (paramsToSetAfterConnecting[key] ==null){
250-
paramsToSetAfterConnecting[key]=[];
251-
}
252-
paramsToSetAfterConnecting[key].push(value);
249+
(paramsToSetAfterConnecting[key]??=[]).push(value);
253250
} else {
254251
paramsToSetAfterConnecting[key] = value;
255252
}

0 commit comments

Comments
 (0)