fix(frontend): convert plex port to a number before posting to the api

This commit is contained in:
sct
2020-12-14 09:13:59 +00:00
parent 2098a2d3d2
commit 8cb05c413a

View File

@@ -78,7 +78,7 @@ const SettingsPlex: React.FC<SettingsPlexProps> = ({ onComplete }) => {
try {
await axios.post('/api/v1/settings/plex', {
ip: values.hostname,
port: values.port,
port: Number(values.port),
} as PlexSettings);
revalidate();