MongoDB-PHP-GUI icon indicating copy to clipboard operation
MongoDB-PHP-GUI copied to clipboard

Edit document null attribute doesn't work

Open creharmony opened this issue 3 years ago • 0 comments

Hi @SamuelTallet

Starting from a find on a given collection, I got a json document as result.

If a given attribute has a value ; ex. name : Joe: by clicking on joe I can update the value and this works well.

but if a given attribute has a null value ; ex. name : null: by clicking on null I cant update the value and this produces following JavaScript console logs:

VM74:1 Uncaught SyntaxError: Unexpected token d in JSON at position 0
    at JSON.parse (<anonymous>)
    at MPG.helpers.convertStringToAny (queryDatabase.js:152:64)
    at HTMLDivElement.<anonymous> (queryDatabase.js:508:49)

image

creharmony avatar Jun 18 '22 13:06 creharmony