Skip to content

Commit

Permalink
Fix by code review
Browse files Browse the repository at this point in the history
  • Loading branch information
ilan7empest committed Nov 30, 2023
1 parent b9e7ad8 commit eec48a4
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 12 deletions.
1 change: 1 addition & 0 deletions src/common/Input/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ Input.defaultProps = {
focused: false,
iconClass: '',
iconOnClick: () => { },
id: '',
infoLabel: false,
inputIcon: null,
invalid: false,
Expand Down
9 changes: 1 addition & 8 deletions src/components/JobWizard/JobWizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,14 +422,7 @@ const JobWizard = ({
ref: scheduleButtonRef
},
{
id:
mode === PANEL_EDIT_MODE
? 'job-wizard-btn-save'
: isBatchInference
? 'job-wizard-btn-infer-now'
: isTrain
? 'job-wizard-btn-run-training'
: 'job-wizard-btn-run',
id:'run-btn',
label:
mode === PANEL_EDIT_MODE
? 'Save'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ const JobWizardDataInputs = ({ formState, stepIsActive }) => {
exitEditModeTriggerItem={stepIsActive}
fieldsPath={`${DATA_INPUTS_STEP}.dataInputsTable`}
formState={formState}
id="data-inputs-form-table"
rowCanBeAdded={formState.values.runDetails.handlerData?.has_kwargs}
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ const JobWizardResources = ({ formState, frontendSpec, stepIsActive }) => {
exitEditModeTriggerItem={stepIsActive}
fieldsPath={`${RESOURCES_STEP}.volumesTable`}
formState={formState}
id="add-volumes-form-table"
/>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/elements/FormDataInputsTable/FormDataInputsTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ const FormDataInputsTable = ({
FormDataInputsTable.defaultProps = {
className: '',
disabled: false,
id: 'data-inputs-table',
id: 'data-inputs-form-table',
exitEditModeTriggerItem: null,
rowCanBeAdded: false
}
Expand Down
2 changes: 1 addition & 1 deletion src/elements/FormVolumesTable/FormVolumesTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const FormVolumesTable = ({ disabled, exitEditModeTriggerItem, fieldsPath, formS
FormVolumesTable.defaultProps = {
disabled: false,
exitEditModeTriggerItem: null,
id: 'volumes-table'
id: 'volumes-form-table'
}

FormVolumesTable.propTypes = {
Expand Down

0 comments on commit eec48a4

Please sign in to comment.