Skip to content

Commit

Permalink
fix(frontend): Remove the hidden check from preview
Browse files Browse the repository at this point in the history
  • Loading branch information
fatonramadani committed May 15, 2024
1 parent 2f91838 commit 396ed60
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions frontend/src/lib/components/apps/editor/GridViewer.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script lang="ts">
import { updateComponentVisibility } from '../svelte-grid/utils/overlap'
import { onMount, createEventDispatcher } from 'svelte'
import type { FilledItem } from '../svelte-grid/types'
Expand Down Expand Up @@ -92,7 +90,6 @@
gapY * 2}
{@const top = (item[getComputedCols] && item[getComputedCols].y) * yPerPx + gapY}
{@const left = (item[getComputedCols] && item[getComputedCols].x) * xPerPx + gapX}
{@const hidden = updateComponentVisibility(item, items, getComputedCols)}

<div
class="svlt-grid-item"
Expand All @@ -101,7 +98,7 @@
: ''} top: {top}px; left: {left}px;"
>
{#if item[getComputedCols]}
<slot dataItem={item} item={item[getComputedCols]} {hidden} />
<slot dataItem={item} item={item[getComputedCols]} hidden={false} />
{/if}
</div>
{/each}
Expand Down

0 comments on commit 396ed60

Please sign in to comment.