Closed ribordy closed 4 years ago
I believe I'm seeing the same issue. I can generate an initial alert, but when I go back to the web site to modify it I cannot. The page just hangs. I resorted to going into the DB table and modifying the record directly so I wouldn't keep getting alerted that the price was lower.
So, I just figured out how to fix this. Super easy. Instead of requiring the older standalone lodash.clonedeep which was an exported version 4.5, just use the newer method that is inside the already included lodash. So edit your history-graph.js file and replace the single line: const cloneDeep = require('lodash.clonedeep');
with the following: const cloneDeep = require('lodash/clonedeep');
Since he's already including the entire lodash module (and a newer version), you don't need to use the standalone module. Easier than doing your Array.from changes.
Works like a charm! I'm now able to see the graph, and get to the edit functions.
Good find. I'll amend my PR to include add an explicit dependency on lodash and replace that instance of cloneDeep
.
My instance successfully fetched some new prices for flights last night, but I'm now unable to view any flight page (request hangs before the app crashes entirely). Stacktrace below, seems it's coming from the history graph component. I'll poke around at this tonight, but I wanted to surface this now in case anyone else was running into a similar problem.
EDIT: Wanted to add in that the history graph portion that's failing hasn't changed in years, so my initial suspicion is that something changed in regards to the way we're storing and/or retrieving alerts.