From 3cb9ec5c9ff8bd2222ff24ea6e1b8c0004b8f9e7 Mon Sep 17 00:00:00 2001 From: HF Date: Tue, 14 Mar 2023 14:42:27 +0100 Subject: [PATCH] give mod-watch-tool tables unique keys on fetch fixes #47 --- src/components/ModWatchtools.jsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/ModWatchtools.jsx b/src/components/ModWatchtools.jsx index c42c87a..b0ee5da 100644 --- a/src/components/ModWatchtools.jsx +++ b/src/components/ModWatchtools.jsx @@ -96,7 +96,9 @@ function ModWatchtools() { selectCanvas(canvasId); }, [canvasId]); - const { columns, types, rows } = table; + const { + columns, types, rows, ts, + } = table; const cidColumn = (types) ? (types.indexOf('cid')) : -1; return ( @@ -227,6 +229,7 @@ function ModWatchtools() { columns: ret.columns, types: ret.types, rows: ret.rows, + ts: Date.now(), }); } }, @@ -258,6 +261,7 @@ function ModWatchtools() { columns: ret.columns, types: ret.types, rows: ret.rows, + ts: Date.now(), }); } }, @@ -269,7 +273,7 @@ function ModWatchtools() {
{(rows && columns && types) && ( - +