Skip to content

Commit f68eaf0

Browse files
authored
Fix not found attribute styleInfoReader result (#6668)
**Problem:** StyleInfoReader returns `left('not found')` for attributes where there is no relevant tailwind classes set. But the features expect `right({ type: 'ATTRIBUTE_NOT_FOUND' })` result in these cases. **Manual Tests:** I hereby swear that: - [x] I opened a hydrogen project and it loaded - [x] I could navigate to various routes in Play mode
1 parent c42354c commit f68eaf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editor/src/components/inspector/common/property-path-hooks.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ export function useGetMultiselectedProps<P extends ParsedPropertiesKeys>(
765765
(props: JSXAttributes, prop: keyof StyleInfo): GetModifiableAttributeResult => {
766766
const elementStyle = getActivePlugin(store.editor).readStyleFromElementProps(props, prop)
767767
if (elementStyle == null) {
768-
return left('not found')
768+
return right({ type: 'ATTRIBUTE_NOT_FOUND' })
769769
}
770770
switch (elementStyle.type) {
771771
case 'not-found':

0 commit comments

Comments
 (0)