fix(frontend): improve code

This commit is contained in:
Faton Ramadani
2024-04-17 16:48:33 +02:00
parent fdc59b1ec7
commit 896206b0d5
+1 -1
View File
@@ -18,7 +18,7 @@ export const action = (node) => {
let height = 0
const style = window.getComputedStyle(node)
const visible = style.getPropertyValue('visibility') === 'hidden'
const visible = style?.getPropertyValue('visibility') === 'hidden'
if (visible === false) {
return