fix: hydration error and draft issue workflow (#2199)
* fix: hydration error and draft issue workflow * fix: build error
This commit is contained in:
parent
5d331477ef
commit
79bf7d4c0c
11 changed files with 240 additions and 47 deletions
|
|
@ -41,7 +41,7 @@ export const CommandPalette: React.FC = observer(() => {
|
|||
const [isCreateUpdatePageModalOpen, setIsCreateUpdatePageModalOpen] = useState(false);
|
||||
|
||||
const router = useRouter();
|
||||
const { workspaceSlug, projectId, issueId, inboxId } = router.query;
|
||||
const { workspaceSlug, projectId, issueId, inboxId, cycleId, moduleId } = router.query;
|
||||
|
||||
const { user } = useUser();
|
||||
|
||||
|
|
@ -183,6 +183,13 @@ export const CommandPalette: React.FC = observer(() => {
|
|||
isOpen={isIssueModalOpen}
|
||||
handleClose={() => setIsIssueModalOpen(false)}
|
||||
fieldsToShow={inboxId ? ["name", "description", "priority"] : ["all"]}
|
||||
prePopulateData={
|
||||
cycleId
|
||||
? { cycle: cycleId.toString() }
|
||||
: moduleId
|
||||
? { module: moduleId.toString() }
|
||||
: undefined
|
||||
}
|
||||
/>
|
||||
<BulkDeleteIssuesModal
|
||||
isOpen={isBulkDeleteIssuesModalOpen}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue