Skip to content

Commit

Permalink
[TSK-1474] Fix expanded creation of sub issue (#3181)
Browse files Browse the repository at this point in the history
Signed-off-by: Ruslan Bayandinov <wazsone@ya.ru>
  • Loading branch information
wazsone committed May 15, 2023
1 parent 3d4e192 commit d137e55
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import tracker from '../../../plugin'
import CreateSubIssue from './CreateSubIssue.svelte'
import SubIssueList from './SubIssueList.svelte'
import { afterUpdate } from 'svelte'
export let issue: Issue
export let projects: Map<Ref<Project>, Project>
Expand Down Expand Up @@ -72,6 +73,14 @@
$: viewOptions = viewlet !== undefined ? getViewOptions(viewlet, $viewOptionStore) : undefined
export let focusIndex = -1
let lastIssueId: Ref<Issue>
afterUpdate(() => {
if (lastIssueId !== issue._id) {
lastIssueId = issue._id
isCreating = $draftsStore[`${issue._id}_subIssue`] !== undefined
}
})
</script>

<div class="flex-between">
Expand Down

0 comments on commit d137e55

Please sign in to comment.