Skip to content

Commit

Permalink
Storybook circular dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
jardakotesovec committed Sep 19, 2024
1 parent 3bf7ce8 commit b36b573
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/components/Form/fields/FieldSelectIssue.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ import HelpButton from '@/components/HelpButton/HelpButton.vue';
import FieldError from '@/components/Form/FieldError.vue';
import PkpButton from '@/components/Button/Button.vue';
import {useSubmissionSummaryStore} from '@/pages/dashboard/SubmissionSummaryModal/submissionSummaryStore';
export default {
name: 'FieldSelectIssue',
components: {Tooltip, FormFieldLabel, HelpButton, FieldError, PkpButton},
Expand Down Expand Up @@ -157,7 +155,14 @@ export default {
},
},
methods: {
selectIssue() {
async selectIssue() {
// workaround to avoid circular dependencies in storybook
// There is chain if imports, and some of them imported form
// which seems to be causing circular dependency
const {useSubmissionSummaryStore} = await import(
'@/pages/dashboard/SubmissionSummaryModal/submissionSummaryStore.js'
);
const summaryStore = useSubmissionSummaryStore();
summaryStore.workflowAssignToIssue({}, (finishedData) => {
Expand Down

0 comments on commit b36b573

Please sign in to comment.