pass tablepath to funcition builder

This commit is contained in:
shamsmosowi
2021-09-16 07:37:16 +10:00
parent 8844a8fab3
commit d129fc496b
4 changed files with 6 additions and 5 deletions

View File

@@ -70,7 +70,7 @@
"yup": "^0.32.9"
},
"scripts": {
"upstream": "git fetch upstream;git merge upstream/v2;git push",
"upstream": "git fetch upstream;git merge upstream/v2;git commit -m'merge upstream';git push",
"serve": "serve -s build",
"start": "craco start",
"build": "craco build",

View File

@@ -128,8 +128,8 @@ export default function FieldSettings(props: IMenuModalProps) {
rowyRun({
route: RunRoutes.buildFunction,
body: {
triggerPath: "demoAllFieldTypes/{docId}",
// configPath: tableState?.config.tableConfig.path,
tablePath: tableState?.tablePath,
pathname: window.location.pathname,
},
params: [],
});

View File

@@ -90,7 +90,8 @@ export default function ExtensionsEditor() {
rowyRun({
route: RunRoutes.buildFunction,
body: {
triggerPath: "",
tablePath: tableState?.tablePath,
pathname: window.location.pathname,
},
});
analytics.logEvent("deployed_extensions");

View File

@@ -255,7 +255,7 @@ const useTableData = () => {
} catch (error: any) {
console.log(error);
if (error.code === "permission-denied") {
enqueueSnackbar("You do not have the permissions to delete rows.", {
enqueueSnackbar("You do not have the permissions to delete this row.", {
variant: "error",
});
}