From 9413a235dedad274c69eb99465fc2dd23fc37916 Mon Sep 17 00:00:00 2001 From: Hans5958 Date: Sun, 1 May 2022 11:06:04 +0700 Subject: [PATCH] Use proper way for default values on args --- web/_js/main.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/_js/main.js b/web/_js/main.js index 4ab35804..5d864038 100644 --- a/web/_js/main.js +++ b/web/_js/main.js @@ -515,8 +515,7 @@ async function init() { } -function updateAtlasAll(atlas) { - if (!atlas) atlas = atlasAll +function updateAtlasAll(atlas = atlasAll) { for (const atlasIndex in atlas) { if (Array.isArray(atlas[atlasIndex].path)) { const currentPath = atlas[atlasIndex].path