Fixed table items losing order when action is executed

This commit is contained in:
Anderson Shindy Oki 2024-08-07 09:03:59 +09:00
parent 2ee008b57b
commit 1ec415f0c5
3 changed files with 10 additions and 10 deletions

View file

@ -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 },

View file

@ -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 },

View file

@ -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 },