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:
AJ
2025-10-12 11:04:05 -04:00
parent 1aecbf14fe
commit 158ae139f0

View File

@@ -19,7 +19,7 @@
<option value="">All Categories</option> <option value="">All Categories</option>
@foreach (var cat in Model.AvailableCategories) @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> </select>
</div> </div>