TypeError: Cannot read property 'then' of null
getFilteredList(group, feature).then(r=>{ //here I am getting error. if(r.data.response_code == "1") { const columnName = "ColumnName"; const Codes = r.data.response_message.map(x => x[columnName]); Codes.forEach(code => { let store = getStoreValue(code); getDetailsById(id, datastore) .then(r=>{ res.status(200).send(r.data); }).catch(e=>{ parseError(e, res); }); }) } }).catch(e=>{ parseError(e, res); }); }
{"CODE":"AGR","GRP":"LEND","FEAT_CODE":"SRC_AGREE","GROUP_NAME":"Prop","FEA_NAME":"Property","DISPLAY_NAME":"Property","ROLE_CODE":"LE"}
getFilteredList(group, feature).then(r=>{
getFilteredList
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)