Skip to content

Commit

Permalink
dashboard: Sort by index to fix child transaction display order
Browse files Browse the repository at this point in the history
Closes #11
  • Loading branch information
punchagan committed Oct 1, 2024
1 parent 75bb5e5 commit eda1339
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/pages/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def display_transactions(
child_df.apply(lambda row: ids.index(row["parent"]) + 0.1, axis=1)
)
if not child_df.empty:
page_df = pd.concat([page_df, child_df])
page_df = pd.concat([page_df, child_df]).sort_index(axis=0)

# Transform the data for display
page_df["category_id"] = page_df["category_id"].apply(
Expand Down

0 comments on commit eda1339

Please sign in to comment.