fix: introduce fix for useApps not using name as param

This commit is contained in:
kasia.oczkowska
2024-04-05 10:48:49 +01:00
parent 0930c9d8d6
commit 87d3ca287d
2 changed files with 7 additions and 3 deletions

View File

@@ -13,9 +13,11 @@ import useApps from 'hooks/useApps';
function AdminApplications() {
const formatMessage = useFormatMessage();
const [appName, setAppName] = React.useState(null);
const [appName, setAppName] = React.useState('');
const { data: apps, isLoading: isAppsLoading } = useApps(appName);
const { data: apps, isLoading: isAppsLoading } = useApps({
name: appName,
});
const onSearchChange = React.useCallback((event) => {
setAppName(event.target.value);