Fix category filter for uncategorized transactions
Previously, selecting "(blank)" from the category dropdown would submit an empty string value, causing no transactions to appear. The backend expects the literal string "(blank)" to filter for uncategorized items. Updated the dropdown to submit "(blank)" as the value when the category is empty, matching the backend's filter logic in Transactions.cshtml.cs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
<option value="">All Categories</option>
|
||||
@foreach (var cat in Model.AvailableCategories)
|
||||
{
|
||||
<option value="@cat">@(string.IsNullOrWhiteSpace(cat) ? "(blank)" : cat)</option>
|
||||
<option value="@(string.IsNullOrWhiteSpace(cat) ? "(blank)" : cat)">@(string.IsNullOrWhiteSpace(cat) ? "(blank)" : cat)</option>
|
||||
}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user