mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 08:26:00 +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(
|
const sortedURLs = useMemo(() => sortURLs(studio.urls ?? []), [studio.urls]);
|
||||||
() => sortURLs(studio.urls ?? []),
|
|
||||||
[studio.urls]
|
|
||||||
);
|
|
||||||
|
|
||||||
function renderURLs() {
|
function renderURLs() {
|
||||||
if (!sortedURLs.length) {
|
if (!sortedURLs.length) {
|
||||||
|
|
|
||||||
|
|
@ -17,4 +17,4 @@ function urlSortKey(url: string): string {
|
||||||
*/
|
*/
|
||||||
export function sortURLs(urls: string[]): string[] {
|
export function sortURLs(urls: string[]): string[] {
|
||||||
return [...urls].sort((a, b) => urlSortKey(a).localeCompare(urlSortKey(b)));
|
return [...urls].sort((a, b) => urlSortKey(a).localeCompare(urlSortKey(b)));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue