Small builders.ts types fix

This commit is contained in:
francesco
2021-05-05 12:22:27 +02:00
parent 0953fd250b
commit 2ff6f71060
3 changed files with 16 additions and 12 deletions

View File

@@ -52,16 +52,13 @@ export const testEntitySchema = buildSchema({
status,
context
}) => {
console.log("custom onPreSave", collectionPath, id);
getNavigationFrom({
return getNavigationFrom({
path: `${collectionPath}/${id}`,
context
}).then((result) => console.log("getNavigationFrom", result));
if (!values.empty_string) values.empty_string = "";
return values;
}).then((navigation) => {
console.log("navigation", navigation);
return values;
});
},
properties: {
actions: {