I have lightning component with several callouts to server-side controller and they work except one! It is absolutely same, but the action doesn't run at all, Callback function doesn't run. Parts of code: Helper function:
({
searchInFiles : function(component, searchedText) {
var action = component.get("c.searchFiles");
action.setParams({
"searchedText" : searchedText,
"returningFilesAmount" : 10
});
action.setCallback(this, function(response) {
var state = response.getState();
if (state === "SUCCESS") {
component.set("v.SearchResults", response.getReturnValue());
console.log(response.getReturnValue());
} else {
console.log("Failed with state: " + state);
console.log("Return value: " + response.getReturnValue());
}
});
console.log();
$A.enqueueAction(action);
}
})
The function in server-side controller exist and work fine, the attribute in component exist and has the same datatype as returning value in server-side function. lightning component and apex controller tied and another callouts work ok. Please, help me to find where is the problem