minor: add some ids here and there

This commit is contained in:
2025-09-22 12:00:04 -04:00
parent fe2b500684
commit db4e81d852
6 changed files with 7 additions and 9 deletions

View File

@@ -8,4 +8,4 @@ defineProps<{ node: TheLocationFragment }>();
<UPage>
<UPageSection v-if="node.title" :title="node.title" />
</UPage>
</template>
</template>

View File

@@ -5,7 +5,5 @@ defineProps<{ node: ThePageFragment }>();
</script>
<template>
<UPage>
<TheSections :sections="node.groupPostPage?.sections" />
</UPage>
<TheSections :sections="node.groupPostPage?.sections || []" />
</template>

View File

@@ -1,8 +1,8 @@
<script setup lang="ts">
import type { TheSectionFragment } from "#graphql-operations";
const props = defineProps<{ sections: (TheSectionFragment)[] }>();
const sections = props.sections.map(useSection);
const props = defineProps<{ sections: (TheSectionFragment | null)[] }>();
const sections = props.sections.filter(Boolean).map((section) => useSection(section!));
</script>
<template>