Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion web/components/issues/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const defaultValues: Partial<IIssue> = {
estimate_point: null,
state: "",
parent: null,
priority: null,
priority: "none",
assignees: [],
assignees_list: [],
labels: [],
Expand Down
2 changes: 1 addition & 1 deletion web/components/issues/select/priority.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const IssuePrioritySelect: React.FC<Props> = ({ value, onChange }) => (
<span>
<PriorityIcon priority={priority} />
</span>
<span className="capitalize">{priority ?? "None"}</span>
<span className="capitalize">{priority}</span>
</div>
</div>
</CustomSelect.Option>
Expand Down
2 changes: 1 addition & 1 deletion web/components/web-view/select-priority.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const PrioritySelect: React.FC<Props> = (props) => {
<WebViewModal.Options
options={
PRIORITIES?.map((priority) => ({
label: priority ? capitalizeFirstLetter(priority) : "None",
label: capitalizeFirstLetter(priority),
value: priority,
checked: priority === value,
onClick: () => {
Expand Down
2 changes: 1 addition & 1 deletion web/constants/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const GROUP_CHOICES = {
cancelled: "Cancelled",
};

export const PRIORITIES: TIssuePriorities[] = ["urgent", "high", "medium", "low", null];
export const PRIORITIES: TIssuePriorities[] = ["urgent", "high", "medium", "low", "none"];

export const MONTHS = [
"January",
Expand Down
2 changes: 1 addition & 1 deletion web/types/issues.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,4 +248,4 @@ export interface IIssueViewProps {
properties: Properties;
}

export type TIssuePriorities = "urgent" | "high" | "medium" | "low" | null;
export type TIssuePriorities = "urgent" | "high" | "medium" | "low" | "none";