diff --git a/ui/src/album/AlbumList.js b/ui/src/album/AlbumList.js index 528695ea5..7b1163286 100644 --- a/ui/src/album/AlbumList.js +++ b/ui/src/album/AlbumList.js @@ -29,7 +29,6 @@ import albumLists, { defaultAlbumList } from './albumLists' import config from '../config' import AlbumInfo from './AlbumInfo' import ExpandInfoDialog from '../dialogs/ExpandInfoDialog' -import { useMemo } from 'react' const AlbumFilter = (props) => { const translate = useTranslate() @@ -80,6 +79,8 @@ const AlbumListTitle = ({ albumListType }) => { return } +const randomStartingSeed = Math.random().toString() + const AlbumList = (props) => { const { width } = props const albumView = useSelector((state) => state.albumView) @@ -89,10 +90,6 @@ const AlbumList = (props) => { const refresh = useRefresh() useResourceRefresh('album') - const randomStartingSeed = useMemo(() => { - return Math.random().toString() - }, []) - const seed = `${randomStartingSeed}-${version}` const albumListType = location.pathname