{
const edgeFieldsValuePairStr = Object.keys(properties)
.map(property => {
const value = properties[property];
- return `${link.type}.${property}: ${value}
`;
+ return `${
+ link.type
+ }.${property}: ${
+ typeof value !== 'string'
+ ? convertBigNumberToString(value)
+ : JSON.stringify(value, (_, value) => {
+ if (typeof value === 'string') {
+ return value.replace(/\u0000+$/, '');
+ }
+ return value;
+ })
+ }
`;
})
.join('');
this.$tooltip.html(
diff --git a/app/assets/utils/constant.ts b/app/assets/utils/constant.ts
index 6cd9d9a0..0c65e14d 100644
--- a/app/assets/utils/constant.ts
+++ b/app/assets/utils/constant.ts
@@ -172,6 +172,10 @@ export const DATA_TYPE = [
value: 'geography(polygon)',
label: 'geography(polygon)',
},
+ {
+ value: 'duration',
+ label: 'duration',
+ },
];
export const RELATION_OPERATORS = [
@@ -202,6 +206,7 @@ export const EXPLAIN_DATA_TYPE = [
'geography(point)',
'geography(linestring)',
'geography(polygon)',
+ 'duration',
];
export const NAME_REGEX = /^[a-zA-Z][a-zA-Z0-9_]*$/;