Skip to content

Commit 4981285

Browse files
committed
fix(world-local): handle undefined args in createEmbeddedWorld
1 parent a8fb9b2 commit 4981285

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/world-local/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { createStreamer } from './streamer.js';
1111
* @param {Partial<Config>} args - The configuration to use for the embedded world.
1212
*/
1313
export function createEmbeddedWorld(args: Partial<Config>): World {
14-
const mergedConfig = { ...config.value, ...args };
14+
const mergedConfig = { ...config.value, ...(args ?? {}) };
1515
return {
1616
...createQueue(mergedConfig),
1717
...createStorage(mergedConfig.dataDir),

0 commit comments

Comments
 (0)