-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
| const frame = useSdkDataByPath(`location.${locationName}`, null); |
I'm pretty sure this function is returning the CustomField object, not the Frame object.
When I examine this object I see this:
{field: e, fieldConfig: {…}, entry: e, stack: e, frame: e}
entry:e {content_type: {…}, _data: {…}, locale: 'en-us', _connection: {…}, _emitter: o, …}
field:e {uid: 'my_app', data_type: 'json', schema: {…}, _emitter: o, _data: {…}, …}
fieldConfig:{}
frame:e {_connection: {…}, _autoResizingEnabled: false, _resizingEnabled: false, type: 'FIELD', state: 'half_width', …}
stack:e {_currentBranch: {…}, _connection: {…}, _data: {…}, ContentType: Proxy(Function), Asset: Proxy(Function)}
[[Prototype]]:Object
Correct code I believe should be
const frame = useSdkDataByPath(`location.${locationName}`, null)?.frame;
Metadata
Metadata
Assignees
Labels
No labels