mirror of
https://github.com/placeAtlas/atlas.git
synced 2024-09-27 20:48:56 +02: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) {
|
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
|
||||||
|
|
Loading…
Reference in a new issue