Skip to content

Commit b4180b6

Browse files
committed
fix: check value before compare
1 parent 7be649d commit b4180b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/icestark/src/AppRoute.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export default class AppRoute extends React.Component<AppRouteProps, AppRouteSta
8686
};
8787
const { loadScriptMode, runtime } = props;
8888

89-
if (loadScriptMode !== 'fetch' && runtime) {
89+
if (loadScriptMode && loadScriptMode !== 'fetch' && runtime) {
9090
console.error('[icestark] runtime option can only be used when loadScriptMode is set to "fetch"');
9191
}
9292
}

0 commit comments

Comments
 (0)