Skip to content

Commit

Permalink
fix: Any time data can't is null
Browse files Browse the repository at this point in the history
  • Loading branch information
timi137137 committed Oct 20, 2024
1 parent a63b08a commit 343567c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/transform.interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class TransformInterceptor<T extends ResponseBody<object>>
// If it is a file stream, return it
if (Data instanceof StreamableFile) return Data;

Result.data = Data;
Result.data = Data ?? {};
return Result;
}),
);
Expand Down

0 comments on commit 343567c

Please sign in to comment.