Finish Minor Tweaks

pull/696/head
“Brandon 2019-07-12 14:52:46 -04:00
rodzic 1c883aba01
commit 195ef883d1
2 zmienionych plików z 7 dodań i 3 usunięć

Wyświetl plik

@ -120,8 +120,13 @@ export default class TaskView extends Component {
this.timeoutHandler = null;
}
if (this.cancelableFetch !== null) {
this.cancelableFetch.cancel();
this.cancelableFetch = null;
try {
this.cancelableFetch.cancel();
this.cancelableFetch = null;
} catch (exception) {
console.warning("Failed to clear dead requests");
console.warning(exception);
}
}
this.refreshAssets = null;

Wyświetl plik

@ -1,7 +1,6 @@
PluginsAPI.Dashboard.addTaskActionButton(
["{{ app_name }}/build/TaskView.js"],
function(args, TaskView) {
console.log(args);
return React.createElement(TaskView, {
task: args.task,
token: "{{ token }}",