File tree Expand file tree Collapse file tree 2 files changed +11
-14
lines changed
actions/create-update-delete-record Expand file tree Collapse file tree 2 files changed +11
-14
lines changed Original file line number Diff line number Diff line change @@ -71,14 +71,13 @@ export default {
7171 ( key != "createdAt" ) &&
7272 ( key != "updatedAt" ) &&
7373 ( value . type ) &&
74- ( value . type != "object" )
74+ ( value . type != "object" ) &&
75+ ( value . type != "array" )
7576 ) {
7677 props [ key ] = {
77- type : value [ "type" ] === "array"
78- ? "string[]"
79- : value [ "type" ] === "number"
80- ? "integer"
81- : value [ "type" ] ,
78+ type : value [ "type" ] === "number"
79+ ? "integer"
80+ : value [ "type" ] ,
8281 label : camelCaseToWords ( key ) ,
8382 description : value [ "description" ] ,
8483 optional : ! ( required . includes === key ) ,
Original file line number Diff line number Diff line change @@ -14,17 +14,15 @@ export default {
1414 async options ( ) {
1515 const { components : { schemas } } = await this . listRecords ( ) ;
1616
17- console . log ( "schemas: " , schemas ) ;
18- const options = [ ] ;
19- for ( const [
17+ return Object . entries ( schemas ) . filter ( ( [
2018 key ,
21- ] of Object . entries ( schemas ) ) {
22- options . push ( {
19+ ] ) => key != "Attachment" )
20+ . map ( ( [
21+ key ,
22+ ] ) => ( {
2323 label : camelCaseToWords ( key ) ,
2424 value : key ,
25- } ) ;
26- }
27- return options ;
25+ } ) ) ;
2826 } ,
2927 } ,
3028 actionType : {
You can’t perform that action at this time.
0 commit comments