Skip to content

Commit

Permalink
Fixed frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
Aragas committed Nov 25, 2023
1 parent d048fa8 commit 6589c62
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
SelectedRowChanged="@(model => { DataGridUtils.SelectDeselect(model, ref Value, ref _dataGridRef); })"
ReadData="@OnReadData"
TotalItems="@Metadata.TotalCount"
CurrentPage="@Metadata.CurrentPage"
PageSize="@Metadata.PageSize"
SelectionMode="@DataGridSelectionMode.Single"
ShowPager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
SelectedRowChanged="@(model => { DataGridUtils.SelectDeselect(model, ref Value, ref _dataGridRef); })"
ReadData="@OnReadData"
TotalItems="@Metadata.TotalCount"
CurrentPage="@Metadata.CurrentPage"
PageSize="@Metadata.PageSize"
SelectionMode="@DataGridSelectionMode.Single"
ShowPager
Expand Down
4 changes: 2 additions & 2 deletions src/BUTR.Site.NexusMods.ServerClient/Clients.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public AuthenticationClient(HttpClient client, JsonSerializerOptions options) :

public partial interface ICrashReportsClient
{
Task<PagingStreamingData<CrashReportModel2>> PaginatedStreamingAsync(PaginatedQuery? body = null, CancellationToken ct = default);
Task<PagingStreamingData<CrashReportModel2>> PaginatedStreamingAsync(PaginatedQuery body, CancellationToken ct = default);
}

public partial class CrashReportsClient
Expand All @@ -39,7 +39,7 @@ partial void PrepareRequest(HttpClient client, HttpRequestMessage request, Strin
OnPrepareRequest(client, request, urlBuilder);
}

public virtual async Task<PagingStreamingData<CrashReportModel2>> PaginatedStreamingAsync(PaginatedQuery? body = null, CancellationToken ct = default)
public virtual async Task<PagingStreamingData<CrashReportModel2>> PaginatedStreamingAsync(PaginatedQuery body, CancellationToken ct = default)
{
var urlBuilder_ = new StringBuilder();
urlBuilder_.Append("api/v1/CrashReports/PaginatedStreaming");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async LazyTask<APIStreamingResponse> GetStatusAsync()
{
var stream = await streamingJsonContext.ReadLfSeparatedJsonAsync(ct);
var result = await JsonSerializer.DeserializeAsync<APIStreamingResponse>(stream, jsonSerializerOptions, ct);
hasError = result is null || !string.IsNullOrEmpty(result.Error.Detail);
hasError = result is null || !string.IsNullOrEmpty(result.Error?.Detail); // Do not remove
return result!;
}
async LazyTask<PagingMetadata> GetMetadataAsync()
Expand Down

0 comments on commit 6589c62

Please sign in to comment.