Use proper way for default values on args

This commit is contained in:
Hans5958 2022-05-01 11:06:04 +07:00
parent abf9209359
commit 9413a235de

View file

@ -515,8 +515,7 @@ async function init() {
} }
function updateAtlasAll(atlas) { function updateAtlasAll(atlas = atlasAll) {
if (!atlas) atlas = atlasAll
for (const atlasIndex in atlas) { for (const atlasIndex in atlas) {
if (Array.isArray(atlas[atlasIndex].path)) { if (Array.isArray(atlas[atlasIndex].path)) {
const currentPath = atlas[atlasIndex].path const currentPath = atlas[atlasIndex].path