You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2022/11/07 18:48:22 UTC

[GitHub] [superset] michael-s-molina commented on pull request #22007: chore: Upgrade antd@4.10.3

michael-s-molina commented on PR #22007:
URL: https://github.com/apache/superset/pull/22007#issuecomment-1306039822

   @geido Adding the code below in `superset-ui-core/test/__mocks__/resizer-observer-polyfill.ts` should fix the test error:
   
   ```
   export default function ResizeObserver(callback: ObserveCallback) {
     return {
       disconnect() {
         allCallbacks.splice(allCallbacks.indexOf(callback), 1);
       },
       observe() {
         if (callback) {
           allCallbacks.push(callback);
         }
       },
       unobserve() { <-- ADD THIS
         if (callback) {
           allCallbacks.splice(allCallbacks.indexOf(callback), 1);
         }
       },
     };
   }
   ```


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org