Reload playlist on adding video

In case video was added to the saame playlist
This commit is contained in:
Arkadiusz Fal 2022-05-22 00:36:15 +02:00
parent 0bc4a677d4
commit 03d5eefab0

View File

@ -60,7 +60,10 @@ final class PlaylistsModel: ObservableObject {
onFailure: @escaping (RequestError) -> Void = { _ in }
) {
accounts.api.addVideoToPlaylist(videoID, playlistID, onFailure: onFailure) {
self.load(force: true, onSuccess: onSuccess)
self.load(force: true) {
self.reloadPlaylists.toggle()
onSuccess()
}
}
}