Moving away from Azure Devops #1
2 changed files with 4 additions and 2 deletions
|
|
@ -108,13 +108,13 @@ export class CalendarOrchestrator {
|
||||||
// Hent alle entities og filtrer på parentIds
|
// Hent alle entities og filtrer på parentIds
|
||||||
const allEntities = await service.getAll();
|
const allEntities = await service.getAll();
|
||||||
const entities = allEntities.filter(e =>
|
const entities = allEntities.filter(e =>
|
||||||
parentIds.includes((e as Record<string, unknown>).id as string)
|
parentIds.includes((e as unknown as Record<string, unknown>).id as string)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Byg parent-child map
|
// Byg parent-child map
|
||||||
const map: Record<string, string[]> = {};
|
const map: Record<string, string[]> = {};
|
||||||
for (const entity of entities) {
|
for (const entity of entities) {
|
||||||
const entityRecord = entity as Record<string, unknown>;
|
const entityRecord = entity as unknown as Record<string, unknown>;
|
||||||
const children = (entityRecord[property] as string[]) || [];
|
const children = (entityRecord[property] as string[]) || [];
|
||||||
map[entityRecord.id as string] = children;
|
map[entityRecord.id as string] = children;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -116,6 +116,7 @@ swp-grid-container {
|
||||||
grid-column: 2;
|
grid-column: 2;
|
||||||
grid-row: 1 / 3;
|
grid-row: 1 / 3;
|
||||||
display: grid;
|
display: grid;
|
||||||
|
grid-template-columns: minmax(0, 1fr);
|
||||||
grid-template-rows: subgrid;
|
grid-template-rows: subgrid;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
@ -136,6 +137,7 @@ swp-header-viewport {
|
||||||
swp-content-viewport {
|
swp-content-viewport {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
swp-header-track {
|
swp-header-track {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue