fix: videoPlayer not restoring playback position when queueItem is updated

This commit is contained in:
Prayag Prajapati committed 2024-04-29 22:40:27 +05:30
1 parent 688ac6aee5
commit a4ea932153
3 files changed
+10 -851

No files matched your search

+1 -2
View File
@@ -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", {
-2
View File
@@ -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) {