feat: restore legacy named playlist workflows
This commit is contained in:
@@ -308,6 +308,14 @@
|
||||
}) : null;
|
||||
}
|
||||
|
||||
function withEnabled(entry, enabled) {
|
||||
if (!materializedEntries.has(entry) || typeof enabled !== "boolean") return null;
|
||||
if (entry.enabled === enabled) return entry;
|
||||
const replacement = Object.freeze({ ...entry, enabled });
|
||||
materializedEntries.add(replacement);
|
||||
return replacement;
|
||||
}
|
||||
|
||||
function matchesRaw(entry, raw) {
|
||||
const signature = legacySelectionForEntry(entry);
|
||||
return Boolean(signature && raw && typeof raw.enabled === "boolean" &&
|
||||
@@ -333,6 +341,7 @@
|
||||
normalizeError,
|
||||
materialize,
|
||||
restorePlaylistEntry,
|
||||
withEnabled,
|
||||
legacySelectionForEntry,
|
||||
matchesRaw,
|
||||
isPending,
|
||||
|
||||
Reference in New Issue
Block a user