feat(ui) - custom metrics

This commit is contained in:
Shekar Siri 2022-01-26 23:03:07 +05:30
parent 534a9be0eb
commit 84f05f7bca
3 changed files with 4 additions and 1 deletions

View file

@ -28,6 +28,8 @@ function SaveSearchModal(props: Props) {
});
}
console.log('filter', filter)
return (
<Modal size="tiny" open={ show }>
<Modal.Header className={ stl.modalHeader }>

View file

@ -127,7 +127,7 @@ export function save(instance) {
types: SAVE.array,
call: client => client.post('/saved_search', {
name: instance.name,
filter: instance.filter.toSaveData(),
filter: instance.toSaveData(),
}),
instance,
};

View file

@ -38,6 +38,7 @@ const babelLoader = {
],
plugins: [
"@babel/plugin-syntax-bigint",
["@babel/plugin-proposal-private-property-in-object", { "loose": true }],
[ '@babel/plugin-proposal-decorators', { legacy: true } ],
[ '@babel/plugin-proposal-class-properties', { loose: true }],
[ '@babel/plugin-proposal-private-methods', { loose: true }],