We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 579b8dd commit 2d513ddCopy full SHA for 2d513dd
src/models/baseFrame.js
@@ -56,20 +56,16 @@ class baseFrame {
56
return moment();
57
}
58
59
- toJson() {
60
- return JSON.stringify({
61
- id: this.id,
62
- project: this.project,
63
- resource: this.resource,
64
- notes: this.notes,
65
- start: this._start,
66
- stop: this._stop,
67
- timezone: this.timezone
68
- });
69
- }
70
-
71
static copy(frame) {
72
- return baseFrame.fromJson(frame.config, JSON.parse(frame.toJson()));
+ return baseFrame.fromJson(frame.config, {
+ id: frame.id,
+ project: frame.project,
+ resource: frame.resource,
+ notes: frame.notes,
+ start: frame._start,
+ stop: frame._stop,
+ timezone: frame.timezone
+ });
73
74
75
get duration() {
0 commit comments