You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
update method works properly, but updateOnly loses Date object and reset it to empty object {}
p.s. Don't pay attention to vue-visjs name of package, I use wrapper for vue. It is ok, I checked it on just vis-data
vue-visjs.esm.js:15300UncaughtTypeError: CannotconvertobjectoftypeObjecttotypeDateatconvert(vue-visjs.esm.js:15300:181)atvue-visjs.esm.js:15334:238atArray.reduce(<anonymous>)
at vue-visjs.esm.js:15334:210
at Array.map (<anonymous>)
at vue-visjs.esm.js:11424:44
at vue-visjs.esm.js:11341:14
at Array.reduce (<anonymous>)
at SimpleDataPipe._transformItems (vue-visjs.esm.js:11340:31)
at SimpleDataPipe._update (vue-visjs.esm.js:11366:30)
The text was updated successfully, but these errors were encountered:
alexdeia
changed the title
updateOnly method doesn't work correctly
updateOnly method doesn't work correctly when using Date object
Mar 1, 2023
alexdeia
changed the title
updateOnly method doesn't work correctly when using Date object
updateOnly method doesn't work properly when using Date object
Mar 1, 2023
vis-util (used by vis-data, used in turn by vis-timeline) has some cloning/merging logic that works fine with primitives, Arrays, and Objects, but not so well with anything else. Ideally, it'd be nice if there was a generalizable fix for this that worked with arbitrary classes, but dates are common, at least in the vis-timeline case, and with the tests provided, are now guaranteed to work.
There's also an unrelated cross-env change that I needed to make the BABEL_ENV thing in package.json work on Windows, but I suppose we can drop that if it's unwanted.
This should cover visjs/vis-data#1014 and visjs/vis-timeline#1562 .
See details visjs/vis-timeline#1562
update method works properly, but updateOnly loses Date object and reset it to empty object {}
p.s. Don't pay attention to vue-visjs name of package, I use wrapper for vue. It is ok, I checked it on just vis-data
The text was updated successfully, but these errors were encountered: