File tree Expand file tree Collapse file tree
src/dashboard/CustomParseOptions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ class CustomParseOptions extends DashboardView {
385385 initialFields : {
386386 customOptions,
387387 clientPush : response . clientPush ?? false ,
388- clientClassCreation : response . clientClassCreation !== 'undefined' ? response . clientClassCreation : true ,
388+ clientClassCreation : response . clientClassCreation ?? true ,
389389 } ,
390390 } ) ;
391391 } catch ( error ) {
@@ -1288,7 +1288,7 @@ class CustomParseOptions extends DashboardView {
12881288 < Field
12891289 label = {
12901290 < Label
1291- text = 'Edit as JSON '
1291+ text = 'Advanced Options '
12921292 description = 'Add custom parse options here.'
12931293 dark = { true }
12941294 />
@@ -1415,6 +1415,11 @@ class CustomParseOptions extends DashboardView {
14151415 } , 1500 ) ;
14161416 } catch ( e ) {
14171417 this . setState ( { copyStatus : 'Failed to copy' } ) ;
1418+ setTimeout ( ( ) => {
1419+ if ( this . state . showPayloadModal && this . state . copyStatus === 'Failed to copy' ) {
1420+ this . setState ( { copyStatus : '' } ) ;
1421+ }
1422+ } , 1500 ) ;
14181423 }
14191424 } ;
14201425
You can’t perform that action at this time.
0 commit comments