Filter is not working on DB

I have a table that display data from DB.
For each change in dropdown i want to filter the table.
I created this code:

import wixData from ‘wix-data’;

export function dpProjects_change(event) {
$w(“#dsProjectImages”).setFilter(wixData.filter()
.eq(“project”, $w(“#dpProjects”).value));
}

When i run the test - i get “cannot update field value: index not found”

Can someone please tell me why i get en error?

Hi,
Is there a “product” field in your collection? Have you used console log to make sure that the value of $w(" #dpProjects ").value is not undefined / null?

Tal.