fix: videoPlayer not restoring playback position when queueItem is updated
This commit is contained in:
3 files changed
+10
-851
No files matched your search
@@ -91,7 +91,6 @@ const QueueButton = () => {
|
||||
return (
|
||||
<MenuItem
|
||||
className="queue-item"
|
||||
key={item.Id}
|
||||
disabled={index === currentItemIndex}
|
||||
onClick={() => handlePlay.mutate({ index })}
|
||||
key={virtualItem.key}
|
||||
@@ -109,7 +108,7 @@ const QueueButton = () => {
|
||||
: `S${item.ParentIndexNumber}:E${item.IndexNumber}`}
|
||||
</Typography>
|
||||
<div className="queue-item-image-container">
|
||||
{item.ImageTags.Primary ? (
|
||||
{item.ImageTags?.Primary ? (
|
||||
<img
|
||||
className="queue-item-image"
|
||||
src={api?.getItemImageUrl(item?.Id, "Primary", {
|
||||
|
||||
@@ -129,8 +129,6 @@ const Settings = () => {
|
||||
const handleDelete = useMutation({
|
||||
mutationKey: ["server-delete"],
|
||||
mutationFn: async (server: RecommendedServerInfo) => {
|
||||
const ab = server.id === defaultServer.data;
|
||||
enqueueSnackbar(`${ab}`);
|
||||
await delServer(server.id);
|
||||
|
||||
if (server.id === defaultServer.data) {
|
||||
|
||||
Reference in new issue
Block a user