修复删除列表时会导致应用崩溃的问题

This commit is contained in:
lyswhut 2021-10-23 20:01:12 +08:00
parent bc9974c7fa
commit dddf5ab490

View File

@ -292,12 +292,12 @@ const List = memo(({ setVisiblePanel, currentList, handleCancelMultiSelect }) =>
break
default:
list = userList[selectedListIndex]
if (!list) return []
rename = true
remove = true
sync = list.source && !!musicSdk[list.source].songList
break
}
if (!list) return []
return [
{ action: 'rename', disabled: !rename, label: t('list_rename') },