Hello I’m Baris new on Appsmith
I want to run a query and if there is reponce take an action,
So write the script below but there is red line under responce (if ( response.length > 0)) and says “responce is not defined”
What is wrong with it?
export default {
test: () => {
SelectActiveUser.run().then((responce) => {
if ( response.length > 0) {
showAlert("Success", 'success');
}
else
showAlert("Failure Login", 'error');
})
}
}
Thank you for your responce,