Skip to content

Commit 94f0428

Browse files
committed
Update
1 parent 480955d commit 94f0428

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/router/router.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3742,7 +3742,8 @@ async function callLoaderOrAction(
37423742
// interface so we can know whether it was returned or thrown
37433743
if (opts.isRouteRequest) {
37443744
let queryRouteResponse: QueryRouteResponse = {
3745-
type: resultType || ResultType.data,
3745+
type:
3746+
resultType === ResultType.error ? ResultType.error : ResultType.data,
37463747
response: result,
37473748
};
37483749
throw queryRouteResponse;

0 commit comments

Comments
 (0)