From dce81ce5933bfa3d5c5c509b20ff3e971f3dc37b Mon Sep 17 00:00:00 2001 From: Gabriel Barros Date: Fri, 6 Sep 2024 17:47:13 +0100 Subject: [PATCH] Minor fix to Search panel --- .../common/client/common/search/TableSearchPanel.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/databasepreservation/common/client/common/search/TableSearchPanel.java b/src/main/java/com/databasepreservation/common/client/common/search/TableSearchPanel.java index 9f86a8a9..6ca65bcc 100644 --- a/src/main/java/com/databasepreservation/common/client/common/search/TableSearchPanel.java +++ b/src/main/java/com/databasepreservation/common/client/common/search/TableSearchPanel.java @@ -11,6 +11,7 @@ import java.util.List; import java.util.Map; +import com.databasepreservation.common.api.v1.utils.StringResponse; import com.databasepreservation.common.client.ViewerConstants; import com.databasepreservation.common.client.common.DefaultAsyncCallback; import com.databasepreservation.common.client.common.lists.TableRowList; @@ -308,7 +309,7 @@ public boolean isSearchInfoDefined() { private void saveQuery() { SearchInfo searchInfo = createSearchInfo(); CollectionService.Util - .call((String savedSearchUUID) -> searchPanel.querySavedHandler(true, database, savedSearchUUID), + .call((StringResponse savedSearchUUID) -> searchPanel.querySavedHandler(true, database, savedSearchUUID.getValue()), (String errorMessage) -> searchPanel.querySavedHandler(false, database, null)) .saveSavedSearch(database.getUuid(), database.getUuid(), table.getId(), messages.searchOnTable(table.getName()), "", searchInfo);