diff --git a/packages/fuselage-ui-kit/src/StaticSelect.js b/packages/fuselage-ui-kit/src/StaticSelect.js index a44c34a962..5577b5faef 100644 --- a/packages/fuselage-ui-kit/src/StaticSelect.js +++ b/packages/fuselage-ui-kit/src/StaticSelect.js @@ -14,8 +14,9 @@ export const StaticSelect = ({ context, ...element }) => { - const [{ loading, value }, action] = useBlockContext(element, context); + const [{ loading, value, error }, action] = useBlockContext(element, context); return [option.value, parser.text(option.text)])} @@ -31,10 +32,11 @@ export const MultiStaticSelect = ({ placeholder = { text: 'select a option' }, ...element }) => { - const [{ loading, value }, action] = useBlockContext(element, context); + const [{ loading, value, error }, action] = useBlockContext(element, context); return [option.value, parser.text(option.text)])} onChange={(value) => action({ target: { value } })} placeholder={parser.text(placeholder)} />;