Add or Edit function combined with an empty GET call

Options
Bryan
Bryan Member
edited December 2022 in ? Report a Bug

Hi there,

I seem to be having a problem when utilizing the add or edit function as per below



Basically I'm retrieving contact info via an API call and making an add or edit function to my record in the Xano DB.


Things to note,

There was an email address on the original record in Xano prior to running the API call

The API call does not return the email address field if the value is null, which is what happened in the case of the example above.

Despite the API call not returning the value, the default value of null was not overwritten on the existing record in Xano.

So just wondering if this is a bug, or it's part of the expected behavior?

P:SAll other updates work if there is at least a text character in the API call, so I don't think I have setup the GET filters incorrectly

P:P:S The API call is returning other field values, so it's not a completely blank response that's being returned, just only highlighting what my issue is here

Comments

  • Bryan
    Bryan Member
    Options

    Topic can be closed!

    Issue was my bad.

    For those who run to the same issue, make sure you check your data type in your database.

    In my case, nullable was set to No. Changing it to Yes fixed the issue.