Skip to content

Commit

Permalink
fix(storage,ios): Handle null Storage metadata values (#2881)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Cooley-Gilliom authored and Salakar committed Nov 17, 2019
1 parent 2369c62 commit eeb90c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/storage/ios/RNFBStorage/RNFBStorageCommon.m
Expand Up @@ -308,7 +308,7 @@ + (NSMutableDictionary *)getUploadTaskAsDictionary:(FIRStorageTaskSnapshot *)tas

return [@{
@"bytesTransferred": @(task.progress.completedUnitCount),
@"metadata": storageMetadata,
@"metadata": storageMetadata ? storageMetadata : [NSNull null],
@"state": state,
@"totalBytes": @(task.progress.totalUnitCount)
} mutableCopy];
Expand Down

0 comments on commit eeb90c0

Please sign in to comment.