Merge branch 'develop' of https://github.com/hcengineering/platform into staging-new

This commit is contained in:
Artem Savchenko
2025-11-25 22:16:39 +07:00
2 changed files with 7 additions and 5 deletions
@@ -71,7 +71,7 @@
void (async (loc: Location): Promise<void> => {
const key = loc.path[5]
currentGroup = groups.find((g) => g.key === key) ?? groups[0]
currentGroupKey = currentGroup.key
currentGroupKey = currentGroup?.key
})(loc)
})
@@ -109,8 +109,10 @@
<Separator name="billingSettings" index={0} color={'var(--theme-divider-color)'} />
<div class="hulyComponent-content__column content">
<Component is={currentGroup.component} />
</div>
{#if currentGroup != null}
<div class="hulyComponent-content__column content">
<Component is={currentGroup.component} />
</div>
{/if}
</div>
</div>
@@ -636,7 +636,7 @@ function resolveCursorPositionFromCoords (view: EditorView, coords: { left: numb
function scanMarker (target: HTMLElement | null, field: string): [boolean, HTMLElement | null] {
while (target != null) {
if (target.dataset[field] === 'true') {
if (target.dataset?.[field] === 'true') {
return [true, target]
}
target = target.parentElement