Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

Update function for remaping fields #11

@jyggiz

Description

@jyggiz

I faced with issue about remaping fields from Filemaker response. I think Filemaker update version and in new version they change format of response for some requests. In result this changes breaks code library and i suggest update function remapFields. For some case variable fields is empty and we don't have check function for empty state.
var remapFields = function (fields) { var obj = {}; fields.forEach(function (field) { obj[field.$.name] = field.data[0] }); return obj };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions