Skip to content

Commit

Permalink
fix: Table data_model error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanCardin committed Apr 30, 2024
1 parent 9d2e8d0 commit 38259d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python-fastui/fastui/components/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def _fill_columns(self) -> _te.Self:
try:
data_model_type = type(self.data[0])
except IndexError:
raise ValueError('Cannot infer model from empty data, please set `Table(..., model=MyModel)`')
raise ValueError('Cannot infer model from empty data, please set `Table(..., data_model=MyModel)`')

if self.columns is None:
self.columns = [
Expand Down

0 comments on commit 38259d7

Please sign in to comment.