Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const onSubmit = async e => {
- e.preventDefault();
- setSubmitting(true);
- if(hbaseAction === 'Alter Table') {
- if(!alterTableAction) {
- alert('Select the alter type!');
- } else {
- console.log('hbase alter table');
- const columnFamily = inputs.map(input => input['name']);
- const stuff = {
- user: id,
- action: alterTableValue,
- payload: { ENV_VARS: { env_name: properties?.env, tableName: baseTable, columnFamily } }
- };
- await setSubmitValues({ ...stuff });
- setSubmitting(false);
- return navigate(`/jira-id`);
- }
- }
- };
Add Comment
Please, Sign In to add comment