Added studios to filters and scene page.

This commit is contained in:
2024-09-03 05:56:14 +02:00
parent c3362e614e
commit 60c7e2a876
12 changed files with 108 additions and 19 deletions

View File

@@ -131,14 +131,14 @@ const entities = computed(() => {
return acc;
}
if (channel.parent && !acc[channel.parent.id] && channel.type === 'channel') {
if (!acc[channel.id] && channel.parent && !acc[channel.parent.id] && (channel.type === 'channel' || channel.type === 'studio')) {
acc[channel.parent.id] = {
...channel.parent,
children: [],
};
}
if (channel.parent && channel.type === 'channel') {
if (!acc[channel.id] && channel.parent && (channel.type === 'channel' || channel.type === 'studio')) {
acc[channel.parent.id].children.push(channel);
}