mirror of
https://github.com/stashapp/stash.git
synced 2025-12-07 17:02:38 +01:00
lint
This commit is contained in:
parent
358ce6a4f8
commit
069fa3cffa
2 changed files with 2 additions and 5 deletions
|
|
@ -47,10 +47,7 @@ export const StudioDetailsPanel: React.FC<IStudioDetailsPanel> = ({
|
|||
);
|
||||
}
|
||||
|
||||
const sortedURLs = useMemo(
|
||||
() => sortURLs(studio.urls ?? []),
|
||||
[studio.urls]
|
||||
);
|
||||
const sortedURLs = useMemo(() => sortURLs(studio.urls ?? []), [studio.urls]);
|
||||
|
||||
function renderURLs() {
|
||||
if (!sortedURLs.length) {
|
||||
|
|
|
|||
|
|
@ -17,4 +17,4 @@ function urlSortKey(url: string): string {
|
|||
*/
|
||||
export function sortURLs(urls: string[]): string[] {
|
||||
return [...urls].sort((a, b) => urlSortKey(a).localeCompare(urlSortKey(b)));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue