Skip to content

Commit b011843

Browse files
committed
fix: call setup
1 parent 1e8c349 commit b011843

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/decap-cms-app/src/init/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,12 @@ export async function registerAll() {
131131
]);
132132
}
133133

134-
type Options = InitOptions & { setup?: (cms: CMS) => Promise<void> };
134+
type Options = InitOptions & { setup?: (cms: CMS) => void | Promise<void> };
135135

136136
export async function init(options: Options) {
137137
const { config, setup } = options;
138138
await Promise.all([
139-
setup,
139+
setup && setup(cms),
140140
registerCoreWidgets(),
141141
registerLocale(config.locale || 'en'),
142142
registerBackend(config.local_backend ? 'proxy' : config.backend.name),

0 commit comments

Comments
 (0)