Skip to content

Commit f82722b

Browse files
authored
fix: generated app id not deduped (#1719)
1 parent a7bde71 commit f82722b

File tree

1 file changed

+1
-1
lines changed
  • packages/app-backend-core/src

1 file changed

+1
-1
lines changed

packages/app-backend-core/src/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export function getAppRecordId (app, defaultId?: string): string {
139139

140140
if (defaultId && appIds.has(id)) {
141141
let count = 1
142-
while (appIds.has(`${defaultId}:${count}`)) {
142+
while (appIds.has(`${defaultId}_${count}`)) {
143143
count++
144144
}
145145
id = `${defaultId}_${count}`

0 commit comments

Comments
 (0)