Skip to content

Commit 2a96857

Browse files
committed
last fix maybe
1 parent 7169552 commit 2a96857

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/dashboard/CustomParseOptions/CustomParseOptions.react.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)