Skip to content

Commit

Permalink
chore: upgrade to latest flow 256
Browse files Browse the repository at this point in the history
- fix code issues related to flow
  • Loading branch information
yoavniran committed Dec 8, 2024
1 parent 89667bf commit 05bf585
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const uploadChunkWithUpdatedData = (
// $FlowFixMe - https://github.com/facebook/flow/issues/8215
.then((response: ChunkStartEventData | boolean) => {
let result;
const updatedData = typeof response === "boolean" ? (response === false ? { stop: true } : {}) : response;
const updatedData = typeof response === "boolean" ? (response === false ? { stop: true } : {}) : (response || {});

if (updatedData.stop) {
logger.debugLog(`chunkedSender.sendChunk: received false from CHUNK_START handler - skipping chunk ${chunkIndex}, item ${item.id}`);
Expand Down

0 comments on commit 05bf585

Please sign in to comment.