Use short circuit evaluation to get a fallback value (empty object) if the f?.config expression evaluate to undefined:
const { longFieldName } = f?.config || {};
Use short circuit evaluation to get a fallback value (empty object) if the f?.config expression evaluate to undefined:
const { longFieldName } = f?.config || {};