import/DownloadTaskCollection.js
/**
     * Redefine the position getter to return the sum of included task positions
     */
Redefine the position getter to return the sum of included task positions
Redefine the position getter to return the sum of included task positions
get position()
    {
        const tasks = this.tasks.filter(t => !t.error);
        return tasks.map(t => t.position).reduce((prev, cur) => prev + cur, 0);
    }
get position ( ) { const tasks = this . tasks . filter ( t => ! t . error ) ; return tasks . map ( t => t . position ) . reduce ( ( prev , cur ) => prev + cur , 0 ) ; }
Redefine the position getter to return the sum of included task positions
Redefine the position getter to return the sum of included task positions