style(Recipes): format conditional expression for readability
Improves the readability of the conditional expression in the getColumns function.
This commit is contained in:
parent
64ca29fefc
commit
680f0d648a
2 changed files with 2 additions and 6 deletions
|
|
@ -188,9 +188,7 @@ const getColumns = (
|
|||
)}
|
||||
{str(
|
||||
trans(
|
||||
row.getValue("is_published")
|
||||
? "back.published"
|
||||
: "back.draft",
|
||||
row.getValue("is_published") ? "back.published" : "back.draft",
|
||||
),
|
||||
)
|
||||
.ucFirst()
|
||||
|
|
|
|||
|
|
@ -222,9 +222,7 @@ const getColumns = (
|
|||
)}
|
||||
{str(
|
||||
trans(
|
||||
row.getValue("is_published")
|
||||
? "back.published"
|
||||
: "back.draft",
|
||||
row.getValue("is_published") ? "back.published" : "back.draft",
|
||||
),
|
||||
)
|
||||
.ucFirst()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue