Skip to content

Commit

Permalink
change column order
Browse files Browse the repository at this point in the history
  • Loading branch information
andykawabata committed Jul 24, 2024
1 parent 3c7f04a commit a4e64e8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions backend/django/core/views/api_annotate.py
Original file line number Diff line number Diff line change
Expand Up @@ -1038,9 +1038,9 @@ def get_label_history(request, project_pk):

data_types_dict = {}
for pk in total_data_list:
data_types_dict[pk] = "labeled"
data_types_dict[pk] = "Labeled"
for pk in unlabeled_data_list:
data_types_dict[pk] = "unlabeled"
data_types_dict[pk] = "Unlabeled"
for pk in incomplete_irr_data:
data_types_dict[pk] = "IRR Incomplete"
for pk in pending_irr_data:
Expand Down
14 changes: 7 additions & 7 deletions frontend/src/components/History/HistoryTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ const defaultColumns = {
header: () => null,
id: "Expander"
},
{
accessorKey: "type",
filterFn: "includesString",
header: "Type",
id: "Type",
sortingFn: "alphanumeric"
},
{
accessorKey: "data",
filterFn: "includesString",
Expand All @@ -49,13 +56,6 @@ const defaultColumns = {
id: "Current Label",
sortingFn: "alphanumeric"
},
{
accessorKey: "type",
filterFn: "includesString",
header: "Type",
id: "Type",
sortingFn: "alphanumeric"
},
{
accessorKey: "profile",
filterFn: "includesString",
Expand Down

0 comments on commit a4e64e8

Please sign in to comment.