style: format board preview query
This commit is contained in:
1 parent
4641839fa4
commit
9b4970583e
1 file changed
+2
-5
@@ -341,9 +341,7 @@ export const boardRouter = createTRPCRouter({
|
||||
|
||||
const previewContainerSectionIds = [
|
||||
...new Set(
|
||||
previewSectionLayouts
|
||||
.filter((layout) => layout.section.kind === "container")
|
||||
.map((layout) => layout.sectionId),
|
||||
previewSectionLayouts.filter((layout) => layout.section.kind === "container").map((layout) => layout.sectionId),
|
||||
),
|
||||
];
|
||||
const nestedPreviewItemLayouts =
|
||||
@@ -456,8 +454,7 @@ export const boardRouter = createTRPCRouter({
|
||||
? previewItemLayouts
|
||||
.filter(
|
||||
(layout) =>
|
||||
layout.layoutId === previewLayout.id &&
|
||||
(isInsideRootLane(layout) || isInsideVisibleContainer(layout)),
|
||||
layout.layoutId === previewLayout.id && (isInsideRootLane(layout) || isInsideVisibleContainer(layout)),
|
||||
)
|
||||
.map((layout) => {
|
||||
const appId = appIdByItemId.get(layout.itemId);
|
||||
|
||||
Reference in new issue
Block a user