diff --git a/app/gui/src/dashboard/components/dashboard/column/PathColumn.tsx b/app/gui/src/dashboard/components/dashboard/column/PathColumn.tsx
index 7b97c0fdf55c..9c2a9048c207 100644
--- a/app/gui/src/dashboard/components/dashboard/column/PathColumn.tsx
+++ b/app/gui/src/dashboard/components/dashboard/column/PathColumn.tsx
@@ -130,19 +130,21 @@ export default function PathColumn(props: AssetColumnProps) {
return <>>
}
- const lastPath = finalPath.at(-1)
+ const firstItemInPath = finalPath.at(0)
+ const lastItemInPath = finalPath.at(-1)
// Should not happen, as we ensure that the final path is not empty.
- if (lastPath == null) {
+ if (lastItemInPath == null || firstItemInPath == null) {
return <>>
}
+ // This also means that the first and the last item in the path are the same
if (finalPath.length === 1) {
return (
)
@@ -150,16 +152,24 @@ export default function PathColumn(props: AssetColumnProps) {
return (
-
+