mirror of
https://github.com/HeyPuter/puter.git
synced 2025-02-02 23:28:39 +08:00
tweak: start from 1
This commit is contained in:
parent
66e8b37f70
commit
b9c157b28e
@ -91,7 +91,7 @@ class AppES extends BaseES {
|
||||
( await old_entity.get('name') !== await entity.get('name') );
|
||||
if ( throw_it && extra.options && extra.options.dedupe_name ) {
|
||||
const base = await entity.get('name');
|
||||
let number = 0;
|
||||
let number = 1;
|
||||
while ( await app_name_exists(`${base}-${number}`) ) {
|
||||
number++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user