mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-19 17:01:13 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user