mirror of
https://github.com/HeyPuter/puter.git
synced 2026-11-07 14:33:57 +00:00
tweak: start from 1
This commit is contained in:
1 parent
66e8b37f70
commit
b9c157b28e
1 file changed
+1
-1
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user