fix: introduce fix for useApps not using name as param
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user