Need help in Dataset/Filter Repeater Coding

Hi, I have spent a few days looking into coding the following feature for my site. I like the repeater to show my filtered data when I click on the button, but somehow, it always come out blank. Is my code correct?

import wixData from ‘wix-data’;

export function sectordropdown_change (event) {
$w(“#dataset1”).getItems()
}

export function button1_click (event) {
$w(“#dataset1”).setFilter(wixData.filter()
.eq(“legalStructure”, $w(“#sectordropdown”).value))
$w(“#dataset1”).getItems()
}

When I load the page, all data appears in result (Image 1). But when i select another option (under sector) and click “search”, it all disappears.I have mapped my dropdown list to a saparate dataset. What could be the problem?