DSingh0304 commented on PR #3277:
URL: 
https://github.com/apache/apisix-dashboard/pull/3277#issuecomment-3904968054

   > It is recommended to modify the calling parameters of the 
deepCleanEmptyKeys function, rather than adding complex marking logic to the 
pipeline.
   > 
   > ```
   > export const produceDeepCleanEmptyKeys = (opts: ICleanerOptions = {}) =>
   >   produce((draft) => {
   >     deepCleanEmptyKeys(draft, {
   >       emptyObjectsCleaner: false,  // Key change: Do not clean up empty 
objects.
   >       ...opts,
   >     });
   >   });
   > ```
   
   Thanks for the suggestion! I've implemented the change to use 
`emptyObjectsCleaner: false` instead of the marking logic. All TypeScript 
checks and linting pass. Ready for review.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to