Skip to content

Commit f49703f

Browse files
maneeshttammam-g
authored andcommitted
Fix issue where apps:init breaks on app creation (#8258)
1 parent 01bbf36 commit f49703f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
- Add initial delay when loading python functions (#8239)
22
- Enforce webframeworks enablement only on webframeworks sites (#8168)
3+
- Fix issue where `apps:init` throws an error upon app creation

src/commands/apps-init.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export const command = new Command("apps:init [platform] [appId]")
9292
} catch (e) {
9393
if ((e as Error).message.includes("associated with this Firebase project")) {
9494
const projectId = needProjectId(options);
95-
await sdkInit(platform, { ...options, project: projectId });
95+
await sdkInit(detectedPlatform, { ...options, project: projectId });
9696
} else {
9797
throw e;
9898
}

0 commit comments

Comments
 (0)