Skip to content

Commit

Permalink
fix svg icon default value
Browse files Browse the repository at this point in the history
  • Loading branch information
CREDO23 committed Oct 25, 2024
1 parent f332855 commit 74ffd3e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions apps/web/lib/settings/task-statuses-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,15 @@ export const TaskStatusesForm = ({
*/
const getIcon = useCallback((iconName: string) => {
const name = iconName == "ready-for-review" ? "ready" : iconName;
const icon = iconList.find(icon => icon.title === name)

return iconList.find(icon => icon.title === name)
},[iconList])
if(icon){
setValue("icon", icon.path)
}

return icon

},[iconList, setValue])


/**
Expand Down

0 comments on commit 74ffd3e

Please sign in to comment.