mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-04-26 16:22:53 +00:00
fix: section updating
This commit is contained in:
parent
0557ac3280
commit
fc0c7f5c11
2 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "Miru",
|
"name": "Miru",
|
||||||
"version": "4.1.6",
|
"version": "4.1.7",
|
||||||
"author": "ThaUnknown_ <ThaUnknown@users.noreply.github.com>",
|
"author": "ThaUnknown_ <ThaUnknown@users.noreply.github.com>",
|
||||||
"description": "Stream anime torrents, real-time with no waiting for downloads.",
|
"description": "Stream anime torrents, real-time with no waiting for downloads.",
|
||||||
"main": "build/main.js",
|
"main": "build/main.js",
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,7 @@
|
||||||
userLists.subscribe(() => {
|
userLists.subscribe(() => {
|
||||||
const titles = sections.map(({ title }) => title)
|
const titles = sections.map(({ title }) => title)
|
||||||
for (const section of manager.sections) {
|
for (const section of manager.sections) {
|
||||||
if (titles.includes(section.title)) delete section.preview
|
if (titles.includes(section.title)) section.preview.value = undefined
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
manager.add(sections)
|
manager.add(sections)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue