1 min readOct 30, 2018
Hello Kimi,
I’m not entirely clear on what you’re asking. Do you want the page to throw an error or not?
In the original page, in your onDidDismiss
method, you would simply check for the presence of data before accessing it.
modal.onDidDismiss((data) => {
if (data && data.hasOwnProperty('filter')) {
console.log(data.filter);
} else {
// throw error... if you want.
}
});