chore: only create columns on fillable champs
This commit is contained in:
parent
10e3faec92
commit
e2ace4f6bd
1 changed files with 15 additions and 11 deletions
|
@ -93,6 +93,7 @@ class TypesDeChamp::TypeDeChampBase
|
||||||
end
|
end
|
||||||
|
|
||||||
def columns(procedure_id:, displayable: true, prefix: nil)
|
def columns(procedure_id:, displayable: true, prefix: nil)
|
||||||
|
if fillable?
|
||||||
[
|
[
|
||||||
Column.new(
|
Column.new(
|
||||||
procedure_id:,
|
procedure_id:,
|
||||||
|
@ -104,6 +105,9 @@ class TypesDeChamp::TypeDeChampBase
|
||||||
displayable:
|
displayable:
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
|
else
|
||||||
|
[]
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
Loading…
Add table
Reference in a new issue