Skip to content
This repository was archived by the owner on Oct 10, 2022. It is now read-only.

Commit d64145d

Browse files
erezrokahMarcus Weiner
andauthored
refactor: switch to condition instead of object spread
Co-authored-by: Marcus Weiner <marcus@netlify.com>
1 parent 8ecf41a commit d64145d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/deploy/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ module.exports = async (api, siteId, dir, opts) => {
7878
}
7979
})
8080
if (opts.deployId === null) {
81-
deployParams = { ...deployParams, ...(title && { title }) }
81+
if(title) {
82+
deployParams = { ...deployParams, title }
83+
}
8284
deploy = await api.createSiteDeploy(deployParams)
8385
} else {
8486
deployParams = { ...deployParams, deploy_id: opts.deployId }

0 commit comments

Comments
 (0)