# The first row in the grid disappears after filtering or sorting (data from a Supabase view).

**URL:** <https://community.weweb.io/t/the-first-row-in-the-grid-disappears-after-filtering-or-sorting-data-from-a-supabase-view/19153>\
**Category:** Ask us anything\
**Tags:** data-grid, supabase\
**Created:** [July 10, 2025, 5:25pm UTC](https://community.weweb.io/t/the-first-row-in-the-grid-disappears-after-filtering-or-sorting-data-from-a-supabase-view/19153 "2025-07-10T17:25:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![MariuszM](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@MariuszM](https://community.weweb.io/u/MariuszM)\
**Post date:** [July 10, 2025, 5:25pm UTC](https://community.weweb.io/t/the-first-row-in-the-grid-disappears-after-filtering-or-sorting-data-from-a-supabase-view/19153/1 "2025-07-10T17:25:49Z")

</div>

Hi, I’m new to WeWeb and I have the following problem:  
I’m fetching data from a view in Supabase.  
I’m connecting to the database using Supabese (from WeWeb) plugin, and the data are in a collection.  
After using the filter, the filtered data is displayed with the first row invisible.  
I’m also filtering data from a second table (authors).  
It’s not a view, but a regular table, and the problem doesn’t seem to occur in the second table.  
A similar problem occurs when sorting a column.  
Does anyone know what could be the cause?

[Link to the page where the problem occurs](https://e4fa4cbc-62ab-4638-901f-cec6c6255e9f.weweb-preview.io)

 ![1](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/d/d599c3ba0148151db07b7b6622c89015ec035abb.png)  
 ![2](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/7/758bb0ca1d139755b7fd68442ad44150332424da.png)  
 ![3](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/9/9670e42df7f2ee79c5968dd294cdad3bc65014c6.png)

---

<div class="post-metadata">

**Author:** ![yma](https://avatars.discourse-cdn.com/v4/letter/y/db5fbb/32.png) [@yma](https://community.weweb.io/u/yma)\
**Post date:** [July 10, 2025, 7:52pm UTC](https://community.weweb.io/t/the-first-row-in-the-grid-disappears-after-filtering-or-sorting-data-from-a-supabase-view/19153/2 "2025-07-10T19:52:44Z")

</div>

+1 on this issue seen many times

---

<div class="post-metadata">

**Author:** ![Agustin\_Carozo](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/agustin_carozo/32/13231_2.png) [@Agustin\_Carozo](https://community.weweb.io/u/Agustin_Carozo)\
**Post date:** [July 11, 2025, 2:07pm UTC](https://community.weweb.io/t/the-first-row-in-the-grid-disappears-after-filtering-or-sorting-data-from-a-supabase-view/19153/3 "2025-07-11T14:07:44Z")

</div>

Hi Marius 👋

I took a look at the link you shared and indeed whenever you make a search in the Datagrid filter the first row is not displayed.

Couple of questions we need to figure out:  
1- Is that row supposed to have data and is not being displayed? Or is just a padding/margin error where a blank spacing is being created?  
2- Could this have something to do with the way your view is being created in supabase? Maybe a specific rule or filter that is being applied before it arrives in WeWeb?

In the meantime I will ask our tech team to see if they are aware of a bug when using Datagrid filters + Supabase Views.

---

<div class="post-metadata">

**Author:** ![simples](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/simples/32/14588_2.png) [@simples](https://community.weweb.io/u/simples)\
**Post date:** [July 11, 2025, 2:59pm UTC](https://community.weweb.io/t/the-first-row-in-the-grid-disappears-after-filtering-or-sorting-data-from-a-supabase-view/19153/4 "2025-07-11T14:59:12Z")

</div>

Encountered this before too..

It seems to have resolved itself, might be related to the “Unique Row Id” value or one of your columns doesnt have a key defined

---

<div class="post-metadata">

**Author:** ![MariuszM](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@MariuszM](https://community.weweb.io/u/MariuszM)\
**Post date:** [July 11, 2025, 6:30pm UTC](https://community.weweb.io/t/the-first-row-in-the-grid-disappears-after-filtering-or-sorting-data-from-a-supabase-view/19153/5 "2025-07-11T18:30:07Z")

</div>

I have noticed that after changing the Display option from ‘block’ to ‘inline-block’ in the Display section of the grid settings, the problem no longer occurs.

 ![Display - ustawienie](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/c/c772f5cb0909754b7097b1f7aa504206a6a0fd15.png)

This is what it looks like after changing the settings:

 ![4 po naprawie](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/7/70168c5969b6cb72034dacb1698d6c08180afb0f.png)

---

<div class="post-metadata">

**Author:** ![MariuszM](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@MariuszM](https://community.weweb.io/u/MariuszM)\
**Post date:** [July 11, 2025, 6:43pm UTC](https://community.weweb.io/t/the-first-row-in-the-grid-disappears-after-filtering-or-sorting-data-from-a-supabase-view/19153/6 "2025-07-11T18:43:09Z")

</div>

ad 1. Yes, there should be a row with the data displayed. This is evidenced by the number of filtered records in the footer.

 ![3](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/9/9670e42df7f2ee79c5968dd294cdad3bc65014c6.png)

ad 2. In my opinion, no. I haven’t added any custom rules or filters.

Apart from that:  
[https://community.weweb.io/t/the-first-row-in-the-grid-disappears-after-filtering-or-sorting-data-from-a-supabase-view/19153/5?u=mariuszm](https://community.weweb.io/t/the-first-row-in-the-grid-disappears-after-filtering-or-sorting-data-from-a-supabase-view/19153/5)

---

<div class="post-metadata">

**Author:** ![DanielL](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/daniell/32/13398_2.png) [@DanielL](https://community.weweb.io/u/DanielL)\
**Post date:** [July 11, 2025, 7:11pm UTC](https://community.weweb.io/t/the-first-row-in-the-grid-disappears-after-filtering-or-sorting-data-from-a-supabase-view/19153/7 "2025-07-11T19:11:55Z")

</div>

Hello, in most cases these issues are caused by IDs there are not unique, leading zeroes etc. Please check your data, ensure each object has a unique ID and bind that accordingly in your Data grid settings.

---

<div class="post-metadata">

**Author:** ![MariuszM](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@MariuszM](https://community.weweb.io/u/MariuszM)\
**Post date:** [July 11, 2025, 7:19pm UTC](https://community.weweb.io/t/the-first-row-in-the-grid-disappears-after-filtering-or-sorting-data-from-a-supabase-view/19153/8 "2025-07-11T19:19:35Z")

</div>

The IDs were rather good, and changing the settings resolves the issue.  
Thank you for your help.

[https://community.weweb.io/t/the-first-row-in-the-grid-disappears-after-filtering-or-sorting-data-from-a-supabase-view/19153/5?u=mariuszm](https://community.weweb.io/t/the-first-row-in-the-grid-disappears-after-filtering-or-sorting-data-from-a-supabase-view/19153/5)
