Browse Source

Fix JS error when adding to queue from non-title column

master
jeffvli 2 years ago
parent
commit
f33ee2a0f0
  1. 10
      src/components/viewtypes/ListViewTable.tsx

10
src/components/viewtypes/ListViewTable.tsx

@ -943,6 +943,7 @@ const ListViewTable = ({
handleRowDoubleClick={() => { handleRowDoubleClick={() => {
handleRowDoubleClick({ handleRowDoubleClick({
...rowData, ...rowData,
tableData: sortColumn && !nowPlaying ? sortedData : data,
rowIndex, rowIndex,
}); });
}} }}
@ -995,6 +996,7 @@ const ListViewTable = ({
handleRowDoubleClick={() => { handleRowDoubleClick={() => {
handleRowDoubleClick({ handleRowDoubleClick({
...rowData, ...rowData,
tableData: sortColumn && !nowPlaying ? sortedData : data,
rowIndex, rowIndex,
}); });
}} }}
@ -1039,6 +1041,7 @@ const ListViewTable = ({
handleRowDoubleClick={() => { handleRowDoubleClick={() => {
handleRowDoubleClick({ handleRowDoubleClick({
...rowData, ...rowData,
tableData: sortColumn && !nowPlaying ? sortedData : data,
rowIndex, rowIndex,
}); });
}} }}
@ -1076,6 +1079,7 @@ const ListViewTable = ({
handleRowDoubleClick={() => { handleRowDoubleClick={() => {
handleRowDoubleClick({ handleRowDoubleClick({
...rowData, ...rowData,
tableData: sortColumn && !nowPlaying ? sortedData : data,
rowIndex, rowIndex,
}); });
}} }}
@ -1114,6 +1118,7 @@ const ListViewTable = ({
handleRowDoubleClick={() => { handleRowDoubleClick={() => {
handleRowDoubleClick({ handleRowDoubleClick({
...rowData, ...rowData,
tableData: sortColumn && !nowPlaying ? sortedData : data,
rowIndex, rowIndex,
}); });
}} }}
@ -1152,6 +1157,7 @@ const ListViewTable = ({
handleRowDoubleClick={() => { handleRowDoubleClick={() => {
handleRowDoubleClick({ handleRowDoubleClick({
...rowData, ...rowData,
tableData: sortColumn && !nowPlaying ? sortedData : data,
rowIndex, rowIndex,
}); });
}} }}
@ -1214,6 +1220,7 @@ const ListViewTable = ({
handleRowDoubleClick={() => { handleRowDoubleClick={() => {
handleRowDoubleClick({ handleRowDoubleClick({
...rowData, ...rowData,
tableData: sortColumn && !nowPlaying ? sortedData : data,
rowIndex, rowIndex,
}); });
}} }}
@ -1251,6 +1258,7 @@ const ListViewTable = ({
handleRowDoubleClick={() => { handleRowDoubleClick={() => {
handleRowDoubleClick({ handleRowDoubleClick({
...rowData, ...rowData,
tableData: sortColumn && !nowPlaying ? sortedData : data,
rowIndex, rowIndex,
}); });
}} }}
@ -1289,6 +1297,7 @@ const ListViewTable = ({
handleRowDoubleClick={() => { handleRowDoubleClick={() => {
handleRowDoubleClick({ handleRowDoubleClick({
...rowData, ...rowData,
tableData: sortColumn && !nowPlaying ? sortedData : data,
rowIndex, rowIndex,
}); });
}} }}
@ -1338,6 +1347,7 @@ const ListViewTable = ({
handleRowDoubleClick={() => { handleRowDoubleClick={() => {
handleRowDoubleClick({ handleRowDoubleClick({
...rowData, ...rowData,
tableData: sortColumn && !nowPlaying ? sortedData : data,
rowIndex, rowIndex,
}); });
}} }}

Loading…
Cancel
Save