aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/src
diff options
context:
space:
mode:
authorAnderson Shindy Oki <[email protected]>2024-08-07 09:03:59 +0900
committerAnderson Shindy Oki <[email protected]>2024-08-07 09:03:59 +0900
commit1ec415f0c5d0d9d72555778d1c5f564271f0ea3d (patch)
tree9cb42c4488e46e1de624eeb6345612c59aa2c613 /frontend/src
parent2ee008b57bdb8b00844c2401ae26f56efad135e1 (diff)
downloadbazarr-1ec415f0c5d0d9d72555778d1c5f564271f0ea3d.tar.gz
bazarr-1ec415f0c5d0d9d72555778d1c5f564271f0ea3d.zip
Fixed table items losing order when action is executed
Diffstat (limited to 'frontend/src')
-rw-r--r--frontend/src/pages/System/Announcements/table.tsx8
-rw-r--r--frontend/src/pages/System/Tasks/table.tsx8
-rw-r--r--frontend/src/pages/Wanted/Movies/index.tsx4
3 files changed, 10 insertions, 10 deletions
diff --git a/frontend/src/pages/System/Announcements/table.tsx b/frontend/src/pages/System/Announcements/table.tsx
index febb32fa1..910fb4bd5 100644
--- a/frontend/src/pages/System/Announcements/table.tsx
+++ b/frontend/src/pages/System/Announcements/table.tsx
@@ -19,7 +19,7 @@ const Table: FunctionComponent<Props> = ({ announcements }) => {
() => [
{
header: "Since",
- accessor: "timestamp",
+ accessorKey: "timestamp",
cell: ({
row: {
original: { timestamp },
@@ -30,7 +30,7 @@ const Table: FunctionComponent<Props> = ({ announcements }) => {
},
{
header: "Announcement",
- accessor: "text",
+ accessorKey: "text",
cell: ({
row: {
original: { text },
@@ -41,7 +41,7 @@ const Table: FunctionComponent<Props> = ({ announcements }) => {
},
{
header: "More Info",
- accessor: "link",
+ accessorKey: "link",
cell: ({
row: {
original: { link },
@@ -56,7 +56,7 @@ const Table: FunctionComponent<Props> = ({ announcements }) => {
},
{
header: "Dismiss",
- accessor: "hash",
+ accessorKey: "hash",
cell: ({
row: {
original: { dismissible, hash },
diff --git a/frontend/src/pages/System/Tasks/table.tsx b/frontend/src/pages/System/Tasks/table.tsx
index ed3248b6f..5e1b045bd 100644
--- a/frontend/src/pages/System/Tasks/table.tsx
+++ b/frontend/src/pages/System/Tasks/table.tsx
@@ -17,7 +17,7 @@ const Table: FunctionComponent<Props> = ({ tasks }) => {
() => [
{
header: "Name",
- accessor: "name",
+ accessorKey: "name",
cell: ({
row: {
original: { name },
@@ -28,7 +28,7 @@ const Table: FunctionComponent<Props> = ({ tasks }) => {
},
{
header: "Interval",
- accessor: "interval",
+ accessorKey: "interval",
cell: ({
row: {
original: { interval },
@@ -39,11 +39,11 @@ const Table: FunctionComponent<Props> = ({ tasks }) => {
},
{
header: "Next Execution",
- accessor: "next_run_in",
+ accessorKey: "next_run_in",
},
{
header: "Run",
- accessor: "job_running",
+ accessorKey: "job_running",
cell: ({
row: {
original: { job_id: jobId, job_running: jobRunning },
diff --git a/frontend/src/pages/Wanted/Movies/index.tsx b/frontend/src/pages/Wanted/Movies/index.tsx
index 7c497f799..c05cfb7c3 100644
--- a/frontend/src/pages/Wanted/Movies/index.tsx
+++ b/frontend/src/pages/Wanted/Movies/index.tsx
@@ -21,7 +21,7 @@ const WantedMoviesView: FunctionComponent = () => {
() => [
{
header: "Name",
- accessor: "title",
+ accessorKey: "title",
cell: ({
row: {
original: { title, radarrId },
@@ -37,7 +37,7 @@ const WantedMoviesView: FunctionComponent = () => {
},
{
header: "Missing",
- accessor: "missing_subtitles",
+ accessorKey: "missing_subtitles",
cell: ({
row: {
original: { radarrId, missing_subtitles: missingSubtitles },