Skip to content

Commit

Permalink
UIDATIMP-1461: Clear searches when switching between profile types (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
OleksandrHladchenko1 authored Jul 11, 2023
1 parent 54e0f0c commit 2b29983
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* Refactor the ViewJobLog component to be a functional component (UIDATIMP-1457)
* Job summary - format numbers in summary table (UIDATIMP-1459)
* Allow to handle text/plain content type when error occurs (UIDATIMP-1465)
* Clear searches when switching between profile types (UIDATIMP-1461)

### Bugs fixed:
* Fix all the failed accessibility tests in ui-data-import (UIDATIMP-1393)
Expand Down
2 changes: 1 addition & 1 deletion src/components/SearchAndSort/SearchAndSort.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ export class SearchAndSort extends Component {
setInitialSortQueryParam() {
const { defaultSort } = this.props;

this.transitionToParams({ sort: defaultSort });
this.transitionToParams({ query: '', sort: defaultSort });
}

focusSearchField = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/settings/ActionProfiles/ActionProfiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export class ActionProfiles extends Component {
],
nonInteractiveHeaders: ['selected'],
visibleColumns: ['selected', ...actionProfilesShape.visibleColumns],
columnWidths: { selected: '40px' },
columnWidths: { selected: '40px', name: '430px' },
ViewRecordComponent: ViewActionProfile,
CreateRecordComponent: CreateActionProfile,
EditRecordComponent: EditActionProfile,
Expand Down
2 changes: 1 addition & 1 deletion src/settings/JobProfiles/JobProfiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export const createJobProfiles = (chooseJobProfile = false, dataTypeQuery = '',
'updated',
'updatedBy',
];
const columnWidths = { selected: '40px' };
const columnWidths = { selected: '40px', name: '430px' };

const mapStateToProps = state => {
const {
Expand Down
2 changes: 1 addition & 1 deletion src/settings/MappingProfiles/MappingProfiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export class MappingProfiles extends Component {
],
visibleColumns: ['selected', ...mappingProfilesShape.visibleColumns],
nonInteractiveHeaders: ['selected'],
columnWidths: { selected: '40px' },
columnWidths: { selected: '40px', name: '430px' },
isFullScreen: true,
ViewRecordComponent: ViewMappingProfile,
CreateRecordComponent: CreateMappingProfile,
Expand Down
2 changes: 1 addition & 1 deletion src/settings/MatchProfiles/MatchProfiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ export class MatchProfiles extends Component {
],
visibleColumns: ['selected', ...matchProfilesShape.visibleColumns],
nonInteractiveHeaders: ['selected'],
columnWidths: { selected: '40px' },
columnWidths: { selected: '40px', name: '430px' },
ViewRecordComponent: ViewMatchProfile,
CreateRecordComponent: CreateMatchProfile,
EditRecordComponent: EditMatchProfile,
Expand Down

0 comments on commit 2b29983

Please sign in to comment.