Skip to content

Commit

Permalink
(fix) useAssignedExtensions should not return undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
ibacher committed Oct 8, 2024
1 parent 6f5ab90 commit 1cc8a7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/framework/esm-framework/docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -6017,7 +6017,7 @@ ___
### evaluateAsNumberAsync
▸ **evaluateAsNumberAsync**(`expression`, `variables?`): `number`
▸ **evaluateAsNumberAsync**(`expression`, `variables?`): `Promise`<`number`\>
`evaluateAsNumberAsync()` is a variant of {@link evaluateAsync()} which only supports number results. Useful
if valid expression must return numeric values.
Expand All @@ -6031,7 +6031,7 @@ if valid expression must return numeric values.
#### Returns
`number`
`Promise`<`number`\>
The result of evaluating the expression
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ import { useExtensionSlotStore } from './useExtensionSlotStore';
*/
export function useAssignedExtensions(slotName: string) {
const slotStore = useExtensionSlotStore(slotName);
return slotStore?.assignedExtensions;
return slotStore?.assignedExtensions ?? [];
}

0 comments on commit 1cc8a7c

Please sign in to comment.