Skip to content

Commit

Permalink
fix(editor): Fix sharing
Browse files Browse the repository at this point in the history
  • Loading branch information
cstuncsik committed Sep 13, 2024
1 parent a5f2a3b commit e675660
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const credentialDataHomeProject = computed<ProjectSharingData | undefined>(() =>
});
const projects = computed<ProjectListItem[]>(() => {
return projectsStore.availableProjects.filter(
return projectsStore.projects.filter(
(project) =>
project.id !== props.credential?.homeProject?.id &&
project.id !== credentialDataHomeProject.value?.id,
Expand Down Expand Up @@ -103,7 +103,7 @@ watch(
);
onMounted(async () => {
await Promise.all([usersStore.fetchUsers(), projectsStore.getAvailableProjects()]);
await Promise.all([usersStore.fetchUsers(), projectsStore.getAllProjects()]);
});
function goToUpgrade() {
Expand Down
4 changes: 2 additions & 2 deletions packages/editor-ui/src/components/WorkflowShareModal.ee.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export default defineComponent({
return this.workflowsEEStore.getWorkflowOwnerName(`${this.workflow.id}`);
},
projects(): ProjectListItem[] {
return this.projectsStore.availableProjects.filter(
return this.projectsStore.projects.filter(
(project) => project.id !== this.workflow.homeProject?.id,
);
},
Expand Down Expand Up @@ -241,7 +241,7 @@ export default defineComponent({
if (this.isSharingEnabled) {
await Promise.all([
this.usersStore.fetchUsers(),
this.projectsStore.getAvailableProjects(),
this.projectsStore.getAllProjects(),
]);
if (this.workflow.id !== PLACEHOLDER_EMPTY_WORKFLOW_ID) {
Expand Down

0 comments on commit e675660

Please sign in to comment.