Fixed table items losing order when action is executed

pull/2611/head
Anderson Shindy Oki 3 months ago
parent 2ee008b57b
commit 1ec415f0c5

@ -19,7 +19,7 @@ const Table: FunctionComponent<Props> = ({ announcements }) => {
() => [ () => [
{ {
header: "Since", header: "Since",
accessor: "timestamp", accessorKey: "timestamp",
cell: ({ cell: ({
row: { row: {
original: { timestamp }, original: { timestamp },
@ -30,7 +30,7 @@ const Table: FunctionComponent<Props> = ({ announcements }) => {
}, },
{ {
header: "Announcement", header: "Announcement",
accessor: "text", accessorKey: "text",
cell: ({ cell: ({
row: { row: {
original: { text }, original: { text },
@ -41,7 +41,7 @@ const Table: FunctionComponent<Props> = ({ announcements }) => {
}, },
{ {
header: "More Info", header: "More Info",
accessor: "link", accessorKey: "link",
cell: ({ cell: ({
row: { row: {
original: { link }, original: { link },
@ -56,7 +56,7 @@ const Table: FunctionComponent<Props> = ({ announcements }) => {
}, },
{ {
header: "Dismiss", header: "Dismiss",
accessor: "hash", accessorKey: "hash",
cell: ({ cell: ({
row: { row: {
original: { dismissible, hash }, original: { dismissible, hash },

@ -17,7 +17,7 @@ const Table: FunctionComponent<Props> = ({ tasks }) => {
() => [ () => [
{ {
header: "Name", header: "Name",
accessor: "name", accessorKey: "name",
cell: ({ cell: ({
row: { row: {
original: { name }, original: { name },
@ -28,7 +28,7 @@ const Table: FunctionComponent<Props> = ({ tasks }) => {
}, },
{ {
header: "Interval", header: "Interval",
accessor: "interval", accessorKey: "interval",
cell: ({ cell: ({
row: { row: {
original: { interval }, original: { interval },
@ -39,11 +39,11 @@ const Table: FunctionComponent<Props> = ({ tasks }) => {
}, },
{ {
header: "Next Execution", header: "Next Execution",
accessor: "next_run_in", accessorKey: "next_run_in",
}, },
{ {
header: "Run", header: "Run",
accessor: "job_running", accessorKey: "job_running",
cell: ({ cell: ({
row: { row: {
original: { job_id: jobId, job_running: jobRunning }, original: { job_id: jobId, job_running: jobRunning },

@ -21,7 +21,7 @@ const WantedMoviesView: FunctionComponent = () => {
() => [ () => [
{ {
header: "Name", header: "Name",
accessor: "title", accessorKey: "title",
cell: ({ cell: ({
row: { row: {
original: { title, radarrId }, original: { title, radarrId },
@ -37,7 +37,7 @@ const WantedMoviesView: FunctionComponent = () => {
}, },
{ {
header: "Missing", header: "Missing",
accessor: "missing_subtitles", accessorKey: "missing_subtitles",
cell: ({ cell: ({
row: { row: {
original: { radarrId, missing_subtitles: missingSubtitles }, original: { radarrId, missing_subtitles: missingSubtitles },

Loading…
Cancel
Save