Skip to content

Commit 4174106

Browse files
committed
[rdar://116401230] fix: hierarchy in parentTopicIdentifiers
1 parent 4379e28 commit 4174106

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/components/DocumentationTopic.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
</template>
3232
<slot name="above-title" />
3333
<Hierarchy
34-
v-if="hierarchyItems.length && !enableMinimized && !isTargetIDE"
34+
v-if="hierarchyItems.length && !enableMinimized"
3535
:currentTopicTitle="title"
3636
:isSymbolDeprecated="isSymbolDeprecated"
3737
:isSymbolBeta="isSymbolBeta"

src/views/DocumentationTopic.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,9 @@ export default {
204204
// representing a "path" of parent topic IDs that could be considered the
205205
// hierarchy/breadcrumb for a given topic. We choose to render only the
206206
// one, that has the same path as the current URL.
207-
parentTopicIdentifiers: ({ topicProps: { hierarchy: { paths = [] }, references }, $route }) => {
207+
parentTopicIdentifiers: ({ topicProps: { hierarchy, references }, $route }) => {
208+
if (!hierarchy) return [];
209+
const { paths = [] } = hierarchy;
208210
if (!paths.length) return [];
209211
return paths.find((identifiers) => {
210212
const rootIdentifier = identifiers.find(id => references[id] && references[id].kind !== 'technologies');

0 commit comments

Comments
 (0)