💃🏻 Typing, Styling, Formatting

This commit is contained in:
ajnart
2022-08-02 00:21:11 +02:00
parent eff2fc5ac7
commit 4e75605ac0
3 changed files with 7 additions and 7 deletions

View File

@@ -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) {