mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-12 00:15:48 +01:00
💃🏻 Typing, Styling, Formatting
This commit is contained in:
@@ -84,7 +84,10 @@ export type ServiceType =
|
||||
| 'Sonarr'
|
||||
| 'Transmission';
|
||||
|
||||
export function tryMatchPort(name: string, form?: any) {
|
||||
export function tryMatchPort(name: string | undefined, form?: any) {
|
||||
if (!name) {
|
||||
return undefined;
|
||||
}
|
||||
// Match name with portmap key
|
||||
const port = portmap.find((p) => p.name === name.toLowerCase());
|
||||
if (form && port) {
|
||||
|
||||
Reference in New Issue
Block a user