Fixed console errors
This commit is contained in:
parent
e96986923e
commit
1cdb7a1351
|
|
@ -631,7 +631,7 @@ select,
|
|||
.data-table tbody tr {
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
transition: background-color 0.2s;
|
||||
/* cursor: pointer; */
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.data-table tbody tr:hover {
|
||||
|
|
|
|||
|
|
@ -24,7 +24,9 @@ function openVAModal(va) {
|
|||
|
||||
// Set projects
|
||||
const projects = va.projects || [];
|
||||
document.getElementById('projectsCountBadge').textContent = projects.length;
|
||||
if(document.getElementById('projectsCountBadge')) {
|
||||
document.getElementById('projectsCountBadge').textContent = projects.length;
|
||||
}
|
||||
|
||||
const projectsTableBody = document.getElementById('modalProjectsTableBody');
|
||||
const noProjectsMessage = document.getElementById('modalNoProjects');
|
||||
|
|
@ -45,9 +47,13 @@ function openVAModal(va) {
|
|||
|
||||
if (va.isCurrentlyActive && va.lastProjectId) {
|
||||
viewSessionBtn.href = `/live/${va.lastProjectId}/${va.id}`;
|
||||
modalActions.style.display = 'block';
|
||||
if(modalActions){
|
||||
modalActions.style.display = 'block';
|
||||
}
|
||||
} else {
|
||||
modalActions.style.display = 'none';
|
||||
if(modalActions){
|
||||
modalActions.style.display = 'none';
|
||||
}
|
||||
}
|
||||
|
||||
// Show modal
|
||||
|
|
@ -161,7 +167,7 @@ async function loadDashboardData() {
|
|||
document.querySelectorAll('.va-row').forEach((row, index) => {
|
||||
row.addEventListener('click', function (e) {
|
||||
// Don't open modal if clicking on view link
|
||||
if (!e.target.closest('.view-link')) {
|
||||
if (!e.target.closest('.view-link, .va-logs')) {
|
||||
const va = allVAs[index];
|
||||
openVAModal(va);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue