mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix(frontend): persist search param translation
This commit is contained in:
parent
ad39411c84
commit
92be4a3e3b
@ -44,8 +44,9 @@ export const Translations = () => {
|
||||
hasCount: false,
|
||||
},
|
||||
);
|
||||
const { onSearch, searchPayload } = useSearch<ITranslation>({
|
||||
const { ref, onSearch, searchPayload } = useSearch<ITranslation>({
|
||||
$iLike: ["str"],
|
||||
queryParam: { key: "search", defaultValue: "" },
|
||||
});
|
||||
const { dataGridProps, refetch: refreshTranslations } = useFind(
|
||||
{ entity: EntityType.TRANSLATION },
|
||||
@ -152,7 +153,7 @@ export const Translations = () => {
|
||||
width="max-content"
|
||||
>
|
||||
<Grid item>
|
||||
<FilterTextfield onChange={onSearch} />
|
||||
<FilterTextfield inputRef={ref} onChange={onSearch} />
|
||||
</Grid>
|
||||
<Grid item>
|
||||
<Button
|
||||
|
Loading…
Reference in New Issue
Block a user