From 7d7d57114b159d455ac3c3dfe7c3569acf36f882 Mon Sep 17 00:00:00 2001 From: caele Date: Thu, 26 Jan 2023 16:41:53 +0100 Subject: [PATCH] fix!: created object now extend initial properties --- apis/nucleus/src/sn/type.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apis/nucleus/src/sn/type.js b/apis/nucleus/src/sn/type.js index b84a60898..21cfc05a9 100644 --- a/apis/nucleus/src/sn/type.js +++ b/apis/nucleus/src/sn/type.js @@ -1,5 +1,6 @@ import { generator as SNFactory } from '@nebula.js/supernova'; import { satisfies } from 'semver'; +import extend from 'extend'; import { load } from './load'; /** @@ -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; }); },