diff --git a/frontend/src/components/labels/index.tsx b/frontend/src/components/labels/index.tsx index 1661ffc7..0434a444 100644 --- a/frontend/src/components/labels/index.tsx +++ b/frontend/src/components/labels/index.tsx @@ -42,8 +42,9 @@ export const Labels = () => { const { toast } = useToast(); const dialogs = useDialogs(); const hasPermission = useHasPermission(); - const { onSearch, searchPayload } = useSearch({ + const { ref, onSearch, searchPayload } = useSearch({ $or: ["name", "title"], + queryParam: { key: "search", defaultValue: "" }, }); const { dataGridProps } = useFind( { entity: EntityType.LABEL, format: Format.FULL }, @@ -173,7 +174,7 @@ export const Labels = () => { width="max-content" > - + {hasPermission(EntityType.LABEL, PermissionAction.CREATE) ? (