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 = [
|
const previewContainerSectionIds = [
|
||||||
...new Set(
|
...new Set(
|
||||||
previewSectionLayouts
|
previewSectionLayouts.filter((layout) => layout.section.kind === "container").map((layout) => layout.sectionId),
|
||||||
.filter((layout) => layout.section.kind === "container")
|
|
||||||
.map((layout) => layout.sectionId),
|
|
||||||
),
|
),
|
||||||
];
|
];
|
||||||
const nestedPreviewItemLayouts =
|
const nestedPreviewItemLayouts =
|
||||||
@@ -456,8 +454,7 @@ export const boardRouter = createTRPCRouter({
|
|||||||
? previewItemLayouts
|
? previewItemLayouts
|
||||||
.filter(
|
.filter(
|
||||||
(layout) =>
|
(layout) =>
|
||||||
layout.layoutId === previewLayout.id &&
|
layout.layoutId === previewLayout.id && (isInsideRootLane(layout) || isInsideVisibleContainer(layout)),
|
||||||
(isInsideRootLane(layout) || isInsideVisibleContainer(layout)),
|
|
||||||
)
|
)
|
||||||
.map((layout) => {
|
.map((layout) => {
|
||||||
const appId = appIdByItemId.get(layout.itemId);
|
const appId = appIdByItemId.get(layout.itemId);
|
||||||
|
|||||||
Reference in new issue
Block a user