Filter Repeater to Show All

Hi Guys n Girls!

I have code on my page to filter a repeater & dataset via a dropdown. However I want the option to Show All results in the dataset when “Show All” is selected on the repeater. I assume this will be a straight forward edit… but im just unsure of the code and where/what has to be added.

Here is the code I have.

import wixData from “wix-data”;
$w.onReady(() => {
let lastFilterDropdown;

function filter(dropdown) {
if (lastFilterDropdown !== dropdown) {
let newFilter = wixData.filter();
if (dropdown) {
newFilter = newFilter.contains(‘locationArea’, dropdown);
newFilter = newFilter.eq(‘approved’, true );
.then(() => $w(“#dataset1”).getTotalCount())
.then(results => {
if (results > 0) {
lastFilterDropdown = dropdown;
export function searchvalue_change(event, $w) {

I appreciate your help!!