Hi All, New to Wix cosing. I have looked and looked for an answer, but can’t find one. I have set a session storage value. When I open another page, I just want the repeater to filter data based on the session storage value. I have a dropdown box on the page, but would be happy if the filter just ran when the page is opened. Here is my code for the page:
import wixData from ‘wix-data’;
import { session } from ‘wix-storage’
$w.onReady(function () {
let walkfilter = session.getItem('walk');
$w('#dropdown1').value = walkfilter;
wixData.query('TM_TeamApplications')
.eq("weekendPref1", walkfilter)
.find()
.then((results) => {
$w("#repeater1").data = results.items;
});
});