Skip to content

Commit

Permalink
TRELLO-2576 : make default description mandatory
Browse files Browse the repository at this point in the history
  • Loading branch information
ssedoudbgouv committed Oct 5, 2024
1 parent 87fe2ce commit 5681f48
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const getReportInputs = (draft: PartialReport, lang: AppLang): DetailInpu
if (instanceOfSubcategoryWithInputs(lastSubcategories)) {
res.push(...(lastSubcategories.detailInputs ?? []))
if (!lastSubcategories.detailInputs?.some(_ => _.type === DetailInputType.TEXTAREA)) {
res.push(ReportDefaultInputs.description(true))
res.push(ReportDefaultInputs.description(false))
}
} else {
res.push(...ReportDefaultInputs.defaults(lang))
Expand Down

0 comments on commit 5681f48

Please sign in to comment.