mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-26 11:59:48 +01:00
Show AutomcompleteInput even if the list of playlists is not loaded yet
This commit is contained in:
parent
1607dc8b88
commit
9c940cd44f
2 changed files with 4 additions and 8 deletions
|
|
@ -25,7 +25,7 @@ const AddToPlaylistDialog = () => {
|
|||
const notify = useNotify()
|
||||
const [value, setValue] = useState({})
|
||||
const dataProvider = useDataProvider()
|
||||
const [create] = useCreate(
|
||||
const [createAndAddToPlaylist] = useCreate(
|
||||
'playlist',
|
||||
{ name: value.name },
|
||||
{
|
||||
|
|
@ -74,7 +74,7 @@ const AddToPlaylistDialog = () => {
|
|||
if (value.id) {
|
||||
addToPlaylist(value.id)
|
||||
} else {
|
||||
create()
|
||||
createAndAddToPlaylist()
|
||||
}
|
||||
dispatch(closeAddToPlaylist())
|
||||
e.stopPropagation()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue