Skip to content

Commit

Permalink
fix(binder): fix project binder
Browse files Browse the repository at this point in the history
  • Loading branch information
brucetony committed Jul 29, 2024
1 parent d2d0b7e commit 5af6d8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/data-stores/managers/ProjectBinder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ const created = ref("");
onMounted(() => {
nextTick(async () => {
const r1 = await getProjects();
const projectData = r1.data as unknown as Array<Project>;
const { data: projects } = await getProjects();
const projectData = projects.value!.data as unknown as Array<Project>;
availableProjects.value = projectData.map((proj: Project) => {
return { name: proj.name, id: proj.id };
});
Expand Down
1 change: 1 addition & 0 deletions components/data-stores/tables/DataStoreTreeTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const loading = ref(true);
onMounted(() => {
nextTick(async () => {
const pNodes = formatAnalysisNodes();
console.log(pNodes);
formatDataStoreNodes(pNodes);
loading.value = false;
});
Expand Down

0 comments on commit 5af6d8c

Please sign in to comment.