Skip to content

Will run into webpack compiling issues because of nullish coalescing operator #28

@Luke1982

Description

@Luke1982

const fields = window.coreBOS.Describe[resource]?.fields??[];
const keyField = fields.filter((field) => field.name === key)[0]??{};
const refTo = (keyField && keyField.type && keyField.type.refersTo) ? keyField.type.refersTo[0] : '';
const fieldName = (keyField && keyField.uitype === "10") ? `${key} : (${refTo}) id` : key;
const valueID = value?.split('x')[1]??value;

Can be solved with https://devinschulz.com/modify-create-react-apps-babel-configuration-without-ejecting/, or by taking out the operator in this file until it is supported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions