aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client/views/collections/schemaView/CollectionSchemaCells.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/views/collections/schemaView/CollectionSchemaCells.tsx b/src/client/views/collections/schemaView/CollectionSchemaCells.tsx
index f2df87d71..f75179cea 100644
--- a/src/client/views/collections/schemaView/CollectionSchemaCells.tsx
+++ b/src/client/views/collections/schemaView/CollectionSchemaCells.tsx
@@ -33,6 +33,7 @@ import "./CollectionSchemaView.scss";
import { CollectionView } from "../CollectionView";
const path = require('path');
+// intialize cell properties
export interface CellProps {
row: number;
col: number;
@@ -246,7 +247,7 @@ export class CollectionSchemaCell extends React.Component<CellProps> {
// check if the input is a number
let inputIsNum = true;
for (let s of value) {
- if (isNaN(parseInt(s))) {
+ if (isNaN(parseInt(s)) && !(s == ".") && !(s == ",")) {
inputIsNum = false;
}
}
@@ -373,7 +374,7 @@ export class CollectionSchemaDocCell extends CollectionSchemaCell {
const script = CompileScript(value, {
addReturn: true,
- typecheck: false,
+ typecheck: true,
transformer: DocumentIconContainer.getTransformer()
});