Hi all, I have a repeater and 2 - 3 dropdowns which will filter the repeater. I have setup a boolean with 3 options, yesturday today and tomorrow. I have a dropdown with these selections and want to filter the results but im getting the following error and wanted to know if someone could help. The reason for the boolean is one repeater item can be relevant for all 3.
export function dateDropdown_change(event) {
let filterDate = $w(“#dateDropdown”).value;
$w(“#dataset1”).onReady( () ==> {
if (filterDate === “Today”) {
$w(“#dataset1”).setFilter(wixData.filter()eq(“Today”, true ));
}
if (filterDate === “Tomorrow”) {
$w(“#dataset1”).setFilter(wixData.filter()eq(“Tomorrow”, true ));
}
if (filterDate === “Yesturday”) {
$w(“#dataset1”).setFilter(wixData.filter()eq(“Yesturday”, true ));
}
}
)}
The error is coming on the closed bracket before the ===> on the onready line.
“parsing error unexpected token” any idea how to fix this ?