Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Jul 19, 2023
1 parent 480955d commit 94f0428
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/router/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3742,7 +3742,8 @@ async function callLoaderOrAction(
// interface so we can know whether it was returned or thrown
if (opts.isRouteRequest) {
let queryRouteResponse: QueryRouteResponse = {
type: resultType || ResultType.data,
type:
resultType === ResultType.error ? ResultType.error : ResultType.data,
response: result,
};
throw queryRouteResponse;
Expand Down

0 comments on commit 94f0428

Please sign in to comment.