Skip to content

Commit

Permalink
Merge pull request #1295 from lowcoder-org/fix/dropDownList
Browse files Browse the repository at this point in the history
fix dropdownlist api
  • Loading branch information
FalkWolsky authored Nov 11, 2024
2 parents fb0b3b5 + 5e26578 commit 6952535
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ public class LibraryQueryController implements LibraryQueryEndpoints
private GidService gidService;

@Override
public Mono<ResponseView<List<LibraryQueryAggregateView>>> dropDownList(@RequestParam(required = false) String name) {
public Mono<ResponseView<List<LibraryQueryAggregateView>>> dropDownList(@RequestParam(required = false, defaultValue = "") String name) {
return libraryQueryApiService.dropDownList(name)
.map(ResponseView::success);
}

@Override
public Mono<ResponseView<List<LibraryQueryView>>> list(@RequestParam(required = false) String name) {
public Mono<ResponseView<List<LibraryQueryView>>> list(@RequestParam(required = false, defaultValue = "") String name) {
return libraryQueryApiService.listLibraryQueries(name)
.map(ResponseView::success);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public interface LibraryQueryEndpoints
description = "Retrieve Library Queries in a dropdown format within Lowcoder, suitable for selection in user interfaces."
)
@GetMapping("/dropDownList")
public Mono<ResponseView<List<LibraryQueryAggregateView>>> dropDownList(@RequestParam(required = false) String name);
public Mono<ResponseView<List<LibraryQueryAggregateView>>> dropDownList(@RequestParam(required = false, defaultValue = "") String name);

@Operation(
tags = TAG_LIBRARY_QUERY_MANAGEMENT,
Expand All @@ -38,7 +38,7 @@ public interface LibraryQueryEndpoints
description = "Retrieve a list of Library Queries for a specific Organization within Lowcoder."
)
@GetMapping("/listByOrg")
public Mono<ResponseView<List<LibraryQueryView>>> list(@RequestParam(required = false) String name);
public Mono<ResponseView<List<LibraryQueryView>>> list(@RequestParam(required = false, defaultValue = "") String name);

@Operation(
tags = TAG_LIBRARY_QUERY_MANAGEMENT,
Expand Down

0 comments on commit 6952535

Please sign in to comment.