Skip to content

Commit

Permalink
fix: filter for null/undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
shetzel committed Jan 18, 2023
1 parent 685b466 commit 7a66508
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sourceTracking.ts
Expand Up @@ -611,7 +611,8 @@ export class SourceTracking extends AsyncCreatable {
.filter(Boolean),
deletedFiles: successes
.filter((fileResponse) => fileResponse.state === ComponentStatus.Deleted)
.map((fileResponse) => fileResponse.filePath as string),
.map((fileResponse) => fileResponse.filePath as string)
.filter(Boolean),
}),
this.updateRemoteTracking(
successes.map(({ state, fullName, type, filePath }) => ({ state, fullName, type, filePath })),
Expand Down

0 comments on commit 7a66508

Please sign in to comment.