diff --git a/packages/client/ui-question/src/client/index.ts b/packages/client/ui-question/src/client/index.ts index ef0a253b61..de8f481aad 100644 --- a/packages/client/ui-question/src/client/index.ts +++ b/packages/client/ui-question/src/client/index.ts @@ -29,7 +29,6 @@ function selectQuestion({ interactions }: ComposerChainProps): QuestionWait | nu */ export function apply(ctx: ClientContext): void { const slots = ctx.slots - if (slots === undefined) throw new Error('ui-question: slots service unavailable') ctx.effect( () => slots.register({ name: 'conversation.composer', select: selectQuestion }, QuestionComposer), 'ui-question: composer chain registration', diff --git a/packages/client/ui-question/tests/browser-plugin.spec.ts b/packages/client/ui-question/tests/browser-plugin.spec.ts index 6fb90c3e47..1c4801b96a 100644 --- a/packages/client/ui-question/tests/browser-plugin.spec.ts +++ b/packages/client/ui-question/tests/browser-plugin.spec.ts @@ -31,10 +31,6 @@ describe('apply', () => { expect(inject).toEqual(['slots']) }) - it('fails loud when the slots service is missing', () => { - expect(() => { apply(new Context()) }).toThrow(/slots service unavailable/) - }) - it('fails loud when no live entry has declared the composer slot', async () => { const ctx = new Context() await ctx.plugin(SlotsService).await()