File tree Expand file tree Collapse file tree 8 files changed +9
-9
lines changed
app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/cycles/(detail)/[cycleId]
issue-layouts/quick-action-dropdowns Expand file tree Collapse file tree 8 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ const CycleDetailPage = observer(() => {
2929 const { setValue, storedValue } = useLocalStorage ( "cycle_sidebar_collapsed" , "false" ) ;
3030
3131 useCyclesDetails ( {
32- workspaceSlug : workspaceSlug . toString ( ) ,
32+ workspaceSlug : workspaceSlug ? .toString ( ) ,
3333 projectId : projectId . toString ( ) ,
3434 cycleId : cycleId . toString ( ) ,
3535 } ) ;
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export const IssueLink = ({ activity }: { activity: IIssueActivity }) => {
3636 const { isMobile } = usePlatformOS ( ) ;
3737
3838 const workItemLink = generateWorkItemLink ( {
39- workspaceSlug : workspaceSlug . toString ( ) ?? activity . workspace_detail ?. slug ,
39+ workspaceSlug : workspaceSlug ? .toString ( ) ?? activity . workspace_detail ?. slug ,
4040 projectId : activity ?. project ,
4141 issueId : activity ?. issue ,
4242 projectIdentifier : activity ?. project_detail ?. identifier ,
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ export const AllIssueQuickActions: React.FC<IQuickActionProps> = observer((props
5353 const isInArchivableGroup = ! ! stateDetails && ARCHIVABLE_STATE_GROUPS . includes ( stateDetails ?. group ) ;
5454
5555 const workItemLink = generateWorkItemLink ( {
56- workspaceSlug : workspaceSlug . toString ( ) ,
56+ workspaceSlug : workspaceSlug ? .toString ( ) ,
5757 projectId : issue ?. project_id ,
5858 issueId : issue ?. id ,
5959 projectIdentifier,
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ export const CycleIssueQuickActions: React.FC<IQuickActionProps> = observer((pro
6060 const activeLayout = `${ issuesFilter . issueFilters ?. displayFilters ?. layout } layout` ;
6161
6262 const workItemLink = generateWorkItemLink ( {
63- workspaceSlug : workspaceSlug . toString ( ) ,
63+ workspaceSlug : workspaceSlug ? .toString ( ) ,
6464 projectId : issue ?. project_id ,
6565 issueId : issue ?. id ,
6666 projectIdentifier,
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ export const ModuleIssueQuickActions: React.FC<IQuickActionProps> = observer((pr
6060 const activeLayout = `${ issuesFilter . issueFilters ?. displayFilters ?. layout } layout` ;
6161
6262 const workItemLink = generateWorkItemLink ( {
63- workspaceSlug : workspaceSlug . toString ( ) ,
63+ workspaceSlug : workspaceSlug ? .toString ( ) ,
6464 projectId : issue ?. project_id ,
6565 issueId : issue ?. id ,
6666 projectIdentifier,
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ export const ProjectIssueQuickActions: React.FC<IQuickActionProps> = observer((p
6767 const isDeletingAllowed = isEditingAllowed ;
6868
6969 const workItemLink = generateWorkItemLink ( {
70- workspaceSlug : workspaceSlug . toString ( ) ,
70+ workspaceSlug : workspaceSlug ? .toString ( ) ,
7171 projectId : issue ?. project_id ,
7272 issueId : issue ?. id ,
7373 projectIdentifier,
Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ export const CreateUpdateIssueModalBase: React.FC<IssuesModalProps> = observer((
214214 issueId : response . id ,
215215 issueTypeId : response . type_id ,
216216 projectId : response . project_id ,
217- workspaceSlug : workspaceSlug . toString ( ) ,
217+ workspaceSlug : workspaceSlug ? .toString ( ) ,
218218 isDraft : is_draft_issue ,
219219 } ) ;
220220 }
@@ -284,7 +284,7 @@ export const CreateUpdateIssueModalBase: React.FC<IssuesModalProps> = observer((
284284 issueId : data . id ,
285285 issueTypeId : payload . type_id ,
286286 projectId : payload . project_id ,
287- workspaceSlug : workspaceSlug . toString ( ) ,
287+ workspaceSlug : workspaceSlug ? .toString ( ) ,
288288 isDraft : isDraft ,
289289 } ) ;
290290
Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ export const IssueFormRoot: FC<IssueFormProps> = observer((props) => {
254254 issueId : data . id ,
255255 issueTypeId : data . type_id ,
256256 projectId : data . project_id ,
257- workspaceSlug : workspaceSlug . toString ( ) ,
257+ workspaceSlug : workspaceSlug ? .toString ( ) ,
258258 isDraft : true ,
259259 } ) ;
260260
You can’t perform that action at this time.
0 commit comments