| 108 | } |
| 109 | |
| 110 | private incrementTotalTable(): void { |
| 111 | const totalIndex = this.internalTable.data.findIndex(val => { |
| 112 | return Object.keys(val).includes('total') |
| 113 | }) |
| 114 | if (this.internalTable?.data?.[totalIndex]?.total) { |
| 115 | const [currentCount, status] = this.internalTable.data[totalIndex].total |
| 116 | const newCount = 1 + Number(currentCount) |
| 117 | this.internalTable.data[totalIndex] = { |
| 118 | total: [String(newCount), status], |
| 119 | } |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | private getStatus(result: string): string { |
| 124 | let status |