mirror of
https://github.com/placeAtlas/atlas.git
synced 2024-12-29 09:04:37 +01:00
Use proper way for default values on args
This commit is contained in:
parent
abf9209359
commit
9413a235de
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue