Skip to content

Commit

Permalink
Fix artists bug in grid view
Browse files Browse the repository at this point in the history
  • Loading branch information
GustavAndreasson committed Jan 1, 2024
1 parent d0be683 commit 16edde6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import React from "react"
import { useTranslation } from "react-i18next"
import "./GridHeader.scss"

const GridHeader = ({ gridView, gridColumns, currency, orders, switchOrder }) => {
const GridHeader = ({ gridColumns, currency, orders, switchOrder }) => {
const { t, i18n } = useTranslation()
return (
/*gridView &&*/ <div className="grid-header">
<div className="grid-header">
<div className="column-title"></div>
{gridColumns &&
gridColumns.map(column => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { setOrders } from "Actions"
import GridHeader from "./GridHeader.component"

const mapStateToProps = state => ({
gridHeader: state.ui.GridHeader,
gridColumns: state.ui.gridColumns,
currency: state.collection.currency,
orders: state.process.orders,
Expand All @@ -16,7 +15,6 @@ const mapDispatchToProps = dispatch => ({
})

const mergeProps = (stateProps, dispatchProps, ownProps) => ({
gridHeader: stateProps.gridHeader,
gridColumns: stateProps.gridColumns,
currency: stateProps.currency,
orders: stateProps.orders,
Expand Down
1 change: 1 addition & 0 deletions frontend/src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"name": "Name",
"year": "Year",
"artist": "Artist",
"artists": "Artist",
"track": "Track",
"formats": "Formats",
"genres": "Genres",
Expand Down
1 change: 1 addition & 0 deletions frontend/src/translations/sv.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"name": "Namn",
"year": "År",
"artist": "Artist",
"artists": "Artist",
"track": "Spår",
"formats": "Format",
"genres": "Genrer",
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/utils/Order.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const attributes = {
artist: {
artists: {
name: "Artist",
key: "artist",
key: "artists",
getValue: rec =>
rec.artists
.map(
Expand Down

0 comments on commit 16edde6

Please sign in to comment.