Skip to content

Commit

Permalink
fix!: created object now extend initial properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Caele committed Jan 26, 2023
1 parent ed97b08 commit 7d7d571
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apis/nucleus/src/sn/type.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { generator as SNFactory } from '@nebula.js/supernova';
import { satisfies } from 'semver';
import extend from 'extend';
import { load } from './load';

/**
Expand Down Expand Up @@ -39,8 +40,8 @@ export default function create(info, halo, opts = {}) {
version: type.version,
showTitles: true,
...JSON.parse(stringified),
...initial,
};
extend(true, props, initial);
return props;
});
},
Expand Down

0 comments on commit 7d7d571

Please sign in to comment.