Skip to content

Commit

Permalink
Update src/commands/sites/sites-list.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Lew <51924260+DanielSLew@users.noreply.github.com>
  • Loading branch information
dylanspyer and DanielSLew authored Oct 17, 2024
1 parent 5ef7fb0 commit 229abf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/sites/sites-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const sitesList = async (options: OptionValues, command: BaseCommand) =>
// Json response for piping commands
if (options.json) {
const redactedSites = sites.map((site) => {
if (site && site.build_settings && site.build_settings.env) {
if (site?.build_settings?.env) {
delete site.build_settings.env
}
return site
Expand Down

0 comments on commit 229abf0

Please sign in to comment.