If the "Export to CSV" button fails to launch a task, it currently doesn't display the error message properly. Instead, an error message can only be seen in the browser console, which just says error is undefined.
This fixes the code so that the actual error message will be displayed:
If the "Export to CSV" button fails to launch a task, it currently doesn't display the error message properly. Instead, an error message can only be seen in the browser console, which just says
error is undefined
.This fixes the code so that the actual error message will be displayed:
See https://openedx.atlassian.net/browse/TNL-8370 and https://github.com/edx/edx-platform/pull/28019 for more information about this issue.