I tried almost everything. I tested my API to ensure that the problem is not with it. It happens just one time when you visit the page. However, when you refresh it works fine. Before Clicking delete: Click here to see the image After clicking delete button: Click here to see the image Backend Route (home.rou…
Tag: javascript
How to display the summarized value of multiple rows numbers in a Text [SAPUI5]
as the title states, let’s say i do have the following model: Question 1: How can i display count as summarized number i.e. 7 in a Text? Question 2: Is there a technicality, which could allow such summarization ? What i tried: Formatter function. Issue: Formatter, function sumCount, does get the value o…
moment.js error, sometimes ignores the day
I have a problem with moment.js and it’s that I have two dates (initial and final) when I initialize the dates, the initial is fine but the final date is not, moment.js ignores the day part of the date ,I set “2020-10-05T09:00” but in the console I get “2020-10T17:15Z”, as you ca…
in Ajax, how to write “headers” for multiple condition?
as a beginner, I have some problems in using Ajax (with Discogs API) .. to get a discogs request token, discogs is saying https://www.discogs.com/developers#page:authentication,header:authentication-discogs-auth-flow but, how to write this header? below is my trying code, but I know this is not proper. Answer…
TypeError: Cannot read property ‘map’ of undefined when I am trying to access API call data
I am trying to make a movie search app with React and have made an API call to The Movie Database API. I have this form and what I am trying to do is get the data of the movie that I am searching for. I am not able to access the data from the API call, and I get
javascript arrays of object comparing
I have a project when I get some data from a route in node and I need to compare with the last data I received to see if something changed, basically 2 arrays of objects. For the comparasion I used JSON.stringify(array1) = JSON.stringify(array2), but after I compare the arrays I want to put the value of array…
Calculating the mode value of an array
The function for returning the mode value of an array works on every test except one. When I pass the following array through the function, I get a TypeError. I figured out that it has something to do with the number 0 in the passed array, but I don’t know why and I don’t know how to solve the pro…
Not Found when serving express static file
I would like to access to a page of my web application. I created the server with expressJs and I serve the route by using app.use(express.static()). Here is my tree : In the app.js file, I have this : The line app.use(‘/MPS’, express.static(__dirname + ‘/client’)); work fine : when I …
How to simplify function which returns an object?
I have a function which returns an object but I don’t like that I gotta declare it first and then do forEach method I think there should be something like this But for some reason, it doesn’t work. PS: In this part — — I’m trying to create a key with a name separated by a dot (I …
How to change graphs in react from an options form?
I am new in React and I want to change two graphs made in js depending on a form made with bootstrap form. My code in react is the following: I have not been able to change the graph from the options, only the two graphs appear at the same time. Here the image! Answer **I GOT IT!!! I find