Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion client/viame-web-common/components/RunPipelineMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,13 @@ export default defineComponent({
});

const pipelinesNotRunnable = computed(() => (
props.selectedDatasetIds.length > 1 || pipelines.value === null
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As best I can tell, this was just an uncaught typo. The logic makes no sense otherwise.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might of been to prevent a user from running pipelines on multiple datasets, but looks like a mistake.

props.selectedDatasetIds.length < 1 || pipelines.value === null
));

async function runPipelineOnSelectedItem(pipename: string) {
if (props.selectedDatasetIds.length === 0) {
throw new Error('No selected datasets to run on');
}
await Promise.all(
props.selectedDatasetIds.map((id) => runPipeline(id, pipename)),
);
Expand Down