File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 8
8
9
9
[options]
10
10
suppress_comment= \\(.\\|\n\\)*\\@flow-disable-next
11
+ esproposal.optional_chaining=enable
Original file line number Diff line number Diff line change @@ -220,10 +220,8 @@ const filterSensitiveData = (
220
220
protectedFields && protectedFields . forEach ( k => delete object [ k ] ) ;
221
221
222
222
// fields not requested by client (excluded),
223
- //but were needed to apply protecttedFields
224
- perms . protectedFields &&
225
- perms . protectedFields . temporaryKeys &&
226
- perms . protectedFields . temporaryKeys . forEach ( k => delete object [ k ] ) ;
223
+ // but were needed to apply protectedFields
224
+ perms ?. protectedFields ?. temporaryKeys ?. forEach ( k => delete object [ k ] ) ;
227
225
}
228
226
229
227
for (const key in object) {
You can’t perform that action at this time.
0 commit comments