File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 11/* eslint-disable unicorn/no-null */
2- import { removeUndefinedFromObject } from '@utils/remove-undefined' ;
2+ import { removeUndefinedFromObject } from '@backend-api/ utils/remove-undefined' ;
33
44type TestType = {
55 param1 : string ;
Original file line number Diff line number Diff line change 1+ import { removeUndefinedFromObject } from '@backend-api/utils/remove-undefined' ;
12import {
23 Failure ,
34 Success ,
@@ -14,7 +15,7 @@ export const apiSuccess = (
1415 statusCode,
1516 body : JSON . stringify ( {
1617 statusCode,
17- templates : result ,
18+ templates : result . map ( ( item ) => removeUndefinedFromObject ( item ) ) ,
1819 } satisfies SuccessList ) ,
1920 } ;
2021 }
@@ -23,7 +24,7 @@ export const apiSuccess = (
2324 statusCode,
2425 body : JSON . stringify ( {
2526 statusCode,
26- template : result ,
27+ template : removeUndefinedFromObject ( result ) ,
2728 } satisfies Success ) ,
2829 } ;
2930} ;
You can’t perform that action at this time.
0 commit comments