Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix
  • Loading branch information
PiyushChandra17 committed Jun 15, 2024
commit 680c242569916ede03a555bc35e049329f353f8e
1 change: 1 addition & 0 deletions client/modules/IDE/actions/sorting.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { setSorting } from '../reducers/sorting';
import { setSearchTerm } from '../reducers/search';

export { setSearchTerm } from '../reducers/search';
export { toggleDirectionForField } from '../reducers/sorting';

export const DIRECTION = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ class CollectionList extends React.Component {

_renderFieldHeader = (fieldName, displayName) => {
const { field, direction } = this.props.sorting;
console.log(field);
const headerClass = classNames({
'sketches-table__header': true,
'sketches-table__header--selected': field === fieldName
Expand Down
1 change: 1 addition & 0 deletions client/modules/IDE/reducers/sorting.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const sortingSlice = createSlice({
},
setSorting: (state, action) => {
const { field, direction } = action.payload;
console.log(field);
return { ...state, field, direction };
}
}
Expand Down