Skip to content

Commit

Permalink
Merge branch 'main' into aws
Browse files Browse the repository at this point in the history
  • Loading branch information
grantfitzsimmons authored Aug 18, 2024
2 parents 196bacb + e182978 commit a731446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/pages/api/state/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export async function getState(): Promise<RA<ActiveDeployment>> {
return fs.promises
.readFile(configurationFile)
.then((file) => file.toString())
.then((content) => (content.length === 0 ? {} : JSON.parse(content)));
.then((content) => (content.length === 0 ? [] : JSON.parse(content)));
}

// Based on https://stackoverflow.com/a/34842797/8584605
Expand Down

0 comments on commit a731446

Please sign in to comment.