I have a very simple and straightforward code:
Py:
@blueprint.route('/Ajax', methods=['GET', 'POST'])
def Ajax():
Graph1 = [10,10,10,10,10]
return jsonify(Graph1)
JS
fetch('/Ajax')
.then(function (response) {
theData = Object.values(response);
console.log(theData);
return theData;
})
Yet I am getting:
I am not sure why this is the reason.

responsedoes not contain the response data ... tryfetch('/Ajax') .then(response => response.json()).then(data => here is the data)