Skip to content

Commit 187e0da

Browse files
committed
fix(Runtime): null Type error when up to date
1 parent 81c060a commit 187e0da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CodePush.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ async function syncInternal(options = {}, syncStatusChangeCallback, downloadProg
472472

473473
syncStatusChangeCallback(CodePush.SyncStatus.CHECKING_FOR_UPDATE);
474474
const remotePackage = await checkForUpdate(handleBinaryVersionMismatchCallback);
475-
remotePackageLabel = remotePackage.label;
475+
remotePackageLabel = remotePackage?.label;
476476

477477
const doDownloadAndInstall = async () => {
478478
syncStatusChangeCallback(CodePush.SyncStatus.DOWNLOADING_PACKAGE);

0 commit comments

Comments
 (0)