(message, type = 'info')
| 11164 | |
| 11165 | if (!tableBody) return; |
| 11166 | |
| 11167 | tableBody.innerHTML = ''; |
| 11168 | |
| 11169 | if (!data.hosts || Object.keys(data.hosts).length === 0) { |
| 11170 | tableBody.innerHTML = ` |
| 11171 | <tr> |
| 11172 | <td colspan="8" class="text-center py-8 text-gray-400"> |
| 11173 | No hosts discovered. Check network connectivity and try again. |
| 11174 | </td> |
| 11175 | </tr> |
| 11176 | `; |
| 11177 | if (hostCountSpan) hostCountSpan.textContent = '0 hosts'; |
| 11178 | return; |
| 11179 | } |
| 11180 | |
| 11181 | // Convert hosts object to array for easier processing |
| 11182 | const hostArray = Object.values(data.hosts); |
| 11183 | |
| 11184 | // Use DocumentFragment for better performance |
no outgoing calls
no test coverage detected