Skip to content

Commit

Permalink
Update +page.svelte
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-intuitem committed Apr 9, 2024
1 parent e6c08cd commit fa84b2e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@
child_pattern == 2 ? data.requirement.ref_id :
child_pattern == 1 ? data.requirement.name : '';
const parent_pattern = (data.parent.ref_id ? 2 : 0) + (data.parent.name ? 1 : 0)
const parent_pattern = data.parent ? ((data.parent.ref_id ? 2 : 0) + (data.parent.name ? 1 : 0)) : 0
const parent_title: string =
parent_pattern == 3 ? `${data.parent.ref_id} - ${data.parent.name}` :
parent_pattern == 2 ? data.parent.ref_id :
parent_pattern == 1 ? data.parent.name : '';
const title = parent_pattern + child_title;
console.log("coucou", data.parent)
const title = parent_title + child_title;
breadcrumbObject.set({
id: data.requirementAssessment.id,
name: title ?? 'Requirement assessment',
Expand Down

0 comments on commit fa84b2e

Please sign in to comment.