fix (client): invalid non-null assertion
This commit is contained in:
parent
521cfe7fe3
commit
4af3ca86a6
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ const parentStickyTop = inject<Ref<number>>(CURRENT_STICKY_TOP, ref(0));
|
|||
provide(CURRENT_STICKY_TOP, childStickyTop);
|
||||
|
||||
const calc = () => {
|
||||
childStickyTop.value = parentStickyTop.value + headerEl.value!.offsetHeight;
|
||||
childStickyTop.value = parentStickyTop.value + (headerEl.value?.offsetHeight ?? 0);
|
||||
headerHeight.value = headerEl.value!.offsetHeight.toString();
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue