Skip to content

Commit

Permalink
Changes to match backend type opjects
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauritz-Tieste committed Jul 21, 2024
1 parent acc3dd4 commit 3ade56d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/skill-tree/Node.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ export default defineComponent({
const nodeRef = ref<SVGElement | null>(null);
const current_node = computed(() => {
isNodeBookmarked.value = props.node?.isBookmarked ?? false;
isNodeBookmarked.value = props.node?.is_bookmarked ?? false;
return {
id: props.node?.id ?? '',
name: props.node?.name ?? '',
dependencies: props.node?.dependencies ?? [],
row: props.node?.row ?? props.row,
column: props.node?.column ?? props.column,
icon: props.node?.icon ?? '',
isBookmarked: props.node?.isBookmarked ?? false,
is_bookmarked: props.node?.is_bookmarked ?? false,
};
});
Expand Down
2 changes: 1 addition & 1 deletion pages/skill-tree/[id]/[skill].vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default defineComponent({
const subSkill = computed(() => {
let skills: any[] = subSkillTree.value?.skills ?? [];
let sub_skill = skills.find((skill) => skill.id == subSkillID.value);
isNodeBookmarked.value = sub_skill?.isBookmarked ?? false;
isNodeBookmarked.value = sub_skill?.is_bookmarked ?? false;
return sub_skill;
});
Expand Down

0 comments on commit 3ade56d

Please sign in to comment.