Skip to content

Commit

Permalink
Issue #569: fix search query
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzov96 committed Oct 4, 2023
1 parent 9802d5c commit 58a3def
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions js-packages/admin-ui/src/components/DocTypeFieldsSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import { useDocumentTypeFieldsQuery } from "../graphql-generated";
import { TableVirtuoso } from "react-virtuoso";

export function DocTypeFieldsSearch() {
const { documentTypeId = "new", searchText = "", parentId = "" } = useParams();
const { documentTypeId = "0", searchText = "", parentId = "" } = useParams();
const [searchTextDoc, setSearchTextDoc] = React.useState(searchText);
const searchTextDebounced = useDebounced(searchTextDoc);
const documentTypeFieldsQuery = useDocumentTypeFieldsQuery({
variables: { documentTypeId: documentTypeId, searchText: searchTextDebounced, parentId: parentId },
variables: { documentTypeId: documentTypeId, searchText: searchTextDebounced, parentId: 0 },
});

React.useEffect(() => {
Expand Down
2 changes: 1 addition & 1 deletion js-packages/admin-ui/src/graphql-generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12760,4 +12760,4 @@ export function useCreateYouTubeDataSourceMutation(baseOptions?: Apollo.Mutation
export type CreateYouTubeDataSourceMutationHookResult = ReturnType<typeof useCreateYouTubeDataSourceMutation>;
export type CreateYouTubeDataSourceMutationResult = Apollo.MutationResult<CreateYouTubeDataSourceMutation>;
export type CreateYouTubeDataSourceMutationOptions = Apollo.BaseMutationOptions<CreateYouTubeDataSourceMutation, CreateYouTubeDataSourceMutationVariables>;
// Generated on 2023-10-04T11:29:13+02:00
// Generated on 2023-10-04T11:36:52+02:00

0 comments on commit 58a3def

Please sign in to comment.