Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit dec7377

Browse files
committed
Rework copy method to assign the config object
1 parent c074b42 commit dec7377

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/models/baseFrame.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
const Config = require('../include/config');
2+
13
const moment = require('moment-timezone');
24
const Hashids = require('hashids');
35
const hashids = new Hashids();
@@ -57,7 +59,7 @@ class baseFrame {
5759
}
5860

5961
static copy(frame) {
60-
return baseFrame.fromJson(frame.config, {
62+
return baseFrame.fromJson(Object.assign(new Config, frame.config), {
6163
id: frame.id,
6264
project: frame.project,
6365
resource: frame.resource,

0 commit comments

Comments
 (0)