No internet connection
  1. Home
  2. Issues

Error when Deleting an Account

By Cody @codywarmbo
    2018-08-18 15:41:13.969Z

    onCloseOk/<@https://beta.cpce.group/-/assets/266/more-bundle.min.js:10:460569 r/<@https://beta.cpce.group/-/assets/266/slim-bundle.min.js:10:268399 See Dev Tools for details: usually Ctrl + Shift + C, here in the browser, then click Console.

    • 3 replies
    1. Thanks for reporting! I get an error when I'm admin, and delete another user: (the stack trace below is from a dev build, looks a bit different)

      Error
      TypeError: Cannot read property 'assign' of undefined
          at Object.success (http://localhost/-/assets/267/more-bundle.js:31419:37)
          at http://localhost/-/assets/267/slim-bundle.js:41226:33
      
      See Dev Tools for details: usually Ctrl + Shift + C, here in the browser, then click Console.
      

      in dev tools:

      slim-bundle.js:41242 Error calling /-/delete-user: {}, details: TypeError: Cannot read property 'assign' of undefined
          at Object.success (VM85 more-bundle.js:31419)
          at slim-bundle.js:41226
      

      and when I, as a test user, delete my own account, that works fine. So I think people are able to delete their own accounts, and the bug happens when an admin delete someone's account. Ok, so, I need to make this work for admins too, and add end-to-end tests for both deleting one's own account, and delete-others account.

      1. Progress
        with handling this problem
      2. @KajMagnus marked this topic as Planned 2018-08-22 13:20:19.116Z.
      3. Ok I found the bug, fixed now in my work-in-progress branch at GitHub. Will be included in the next release. (I forgot to pass React props to a nested component resulting in an undefined error.)