File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,16 @@ const {
12
12
13
13
require ( 'dotenv' ) . config ( ) ;
14
14
15
- const PAPI_URL = "https://api.segmentapis.com" ;
15
+ const PAPI_URL = "https://api.segmentapis.build" ;
16
+
17
+ // Function to remove hidden fields from action
18
+ const removeHiddenFields = function ( actions ) {
19
+ return actions . map ( action => ( {
20
+ ...action ,
21
+ fields : action . fields . filter ( field => ! field . hidden )
22
+ } )
23
+ ) ;
24
+ }
16
25
17
26
18
27
const updateDestinations = async ( ) => {
@@ -88,9 +97,9 @@ const updateDestinations = async () => {
88
97
settings . forEach ( setting => {
89
98
setting . description = sanitize ( setting . description ) ;
90
99
} ) ;
91
-
92
- let actions = destination . actions ;
93
- let presets = destination . presets ;
100
+
101
+ let actions = removeHiddenFields ( destination . actions ) ;
102
+ let presets = destination . presets ;
94
103
95
104
const clone = ( obj ) => Object . assign ( { } , obj ) ;
96
105
const renameKey = ( object , key , newKey ) => {
You can’t perform that action at this time.
0 commit comments