Skip to content

Commit

Permalink
Merge pull request #163 from DataCloud-project/registry-hotfix
Browse files Browse the repository at this point in the history
fix: graphql returned data did not match ts interface
  • Loading branch information
goranbs authored Jun 20, 2024
2 parents 4bd23e3 + f13b911 commit 3a97e5f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions frontend/src/routes/secrets/[secret_id]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@
// let template: any;
interface ResponseType {
data: {
workflowTemplate: {
argoWorkflowTemplate: any; // Replace 'any' with the actual type
};
workflowTemplate: {
argoWorkflowTemplate: any; // Replace 'any' with the actual type
};
}
Expand Down Expand Up @@ -68,7 +66,7 @@
});
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
const template = response.data.workflowTemplate.argoWorkflowTemplate;
const template = response.workflowTemplate.argoWorkflowTemplate;
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
template.spec.imagePullSecrets = [{ name: $selectedCredential.name }];
// update path of template images:
Expand Down

0 comments on commit 3a97e5f

Please sign in to comment.