Skip to content
Snippets Groups Projects
Commit 7021e867 authored by Regis's avatar Regis
Browse files

use indexOf instead of includes

parent 60b27b1b
No related branches found
No related tags found
1 merge request!10865Render Description Realtime :tada:
Pipeline #
Loading
Loading
@@ -48,7 +48,7 @@ export default {
},
updateTaskHTML() {
const tasks = document.querySelector('#task_status_short');
const zeroTasks = this.apiData.task_status.includes('0 of 0');
const zeroTasks = this.apiData.task_status.indexOf('0 of 0') >= 0;
 
if (tasks && !zeroTasks) {
tasks.innerText = this.apiData.task_status;
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment