Skip to content

response == "ok" fails because of line break in "ok" string #61

@7-mb

Description

@7-mb

Hi,

when I updated cell values, success was always false so I had to refresh the page to see the new value. The problem was that the response string "ok" always contained a line brake like

"ok
"

After I replaced

var success = onResponse ? onResponse(response) : (response == "ok" || !isNaN(parseInt(response)));

by

var success = onResponse ? onResponse(response) : (response.includes("ok") || !isNaN(parseInt(response)));

it worked for me.

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