Skip to content

Commit

Permalink
fix: custom commands not available at beginning in the dev mode
Browse files Browse the repository at this point in the history
Make a defensive copy of `projectRoots` instead of using a reference when
memorizing old values before the reload.
  • Loading branch information
shumailxyz committed Jun 20, 2023
1 parent 90f16ec commit 3dda63e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/server/instance-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export class GardenInstanceManager {
}

async reload(log: Log) {
const projectRoots = this.projectRoots.keys()
const projectRoots = [...this.projectRoots.keys()]

// Clear existing instances that have no monitors running
await this.clear()
Expand Down

0 comments on commit 3dda63e

Please sign in to comment.