Fix table edit entity bug and add collection panel bug for connection string users (#757)

* Fix table edit entity bug and add collection panel bug for connection string users

* Remove parseInt for int64
This commit is contained in:
victor-meng
2021-05-06 16:51:22 -07:00
committed by GitHub
parent 503f044a70
commit 5606ef3266
2 changed files with 6 additions and 4 deletions

View File

@@ -183,12 +183,14 @@ export function convertEntityToNewDocument(entity: Entities.ITableEntityForTable
parsedValue = DateTimeUtilities.convertJSDateToTicksWithPadding(propertyValue);
break;
case Constants.TableType.Boolean:
parsedValue = propertyValue.toLowerCase() === "true";
parsedValue = propertyValue.toString().toLowerCase() === "true";
break;
case Constants.TableType.Int32:
case Constants.TableType.Int64:
parsedValue = parseInt(propertyValue, 10);
break;
case Constants.TableType.Int64:
parsedValue = propertyValue.toString();
break;
case Constants.TableType.Double:
parsedValue = parseFloat(propertyValue);
break;