Skip to content

Commit abfe53c

Browse files
rbt-mmnscuro
andcommitted
Hide detail view button when no active child
Signed-off-by: RBickert <rbt@mm-software.com> Co-authored-by: Niklas <nscuro@protonmail.com> Signed-off-by: RBickert <rbt@mm-software.com>
1 parent dbb34d3 commit abfe53c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/views/portfolio/projects/ProjectList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
}
8383
8484
function detailFilter(index, row){
85-
return (Object.prototype.hasOwnProperty.call(row, 'children') && row.children)
85+
return (Object.prototype.hasOwnProperty.call(row, 'children') && row.children && row.children.some(child => child.active));
8686
}
8787
8888
export default {

0 commit comments

Comments
 (0)