fix: update dependency in Empty component to improve rendering logic

pull/12372/head
twwu 2 years ago
parent b64298c458
commit 52268460a1

@ -32,10 +32,10 @@ const Empty = () => {
return 'No plugins installed' return 'No plugins installed'
if (filters.categories.length > 0 || filters.tags.length > 0 || filters.searchQuery) if (filters.categories.length > 0 || filters.tags.length > 0 || filters.searchQuery)
return 'No plugins found' return 'No plugins found'
}, [pluginList, filters]) }, [pluginList.length, filters])
return ( return (
<div className='grow w-full relative'> <div className='grow w-full relative z-0'>
{/* skeleton */} {/* skeleton */}
<div className='h-full w-full px-12 absolute top-0 grid grid-cols-2 gap-2 overflow-hidden z-10'> <div className='h-full w-full px-12 absolute top-0 grid grid-cols-2 gap-2 overflow-hidden z-10'>
{Array.from({ length: 20 }).fill(0).map((_, i) => ( {Array.from({ length: 20 }).fill(0).map((_, i) => (

Loading…
Cancel
Save