mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-28 04:24:33 +00:00
fixed username field
This commit is contained in:
parent
3054cf2ae9
commit
bfaa52ea13
1 changed files with 2 additions and 3 deletions
|
|
@ -62,7 +62,6 @@ const M3U = ({ playlist = null, isOpen, onClose, playlistCreated = false }) => {
|
|||
|
||||
useEffect(() => {
|
||||
if (playlist) {
|
||||
const customProperties = JSON.parse(playlist.custom_properties || '{}');
|
||||
form.setValues({
|
||||
name: playlist.name,
|
||||
server_url: playlist.server_url,
|
||||
|
|
@ -71,11 +70,11 @@ const M3U = ({ playlist = null, isOpen, onClose, playlistCreated = false }) => {
|
|||
is_active: playlist.is_active,
|
||||
refresh_interval: playlist.refresh_interval,
|
||||
is_xc: playlist.account_type == 'XC',
|
||||
username: customProperties.username ?? '',
|
||||
username: playlist.username ?? '',
|
||||
password: '',
|
||||
});
|
||||
|
||||
if (customProperties.is_xc) {
|
||||
if (playlist.account_type == 'XC') {
|
||||
setShowCredentialFields(true);
|
||||
} else {
|
||||
setShowCredentialFields(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue