Skip to content

Commit 588e7b1

Browse files
committed
HPCC-34790 ECL Watch v9 contents in file view not updated when file is rewritten
fixes an issue in ECL Watch v9, when viewing the contents of a logical file, the user cannot see the most up-to-date data as they can when using the v5 UI Signed-off-by: Jeremy Clements <79224539+jeclrsg@users.noreply.github.com>
1 parent 13901ee commit 588e7b1

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

esp/src/src-react/components/Result.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,12 @@ export const Result: React.FunctionComponent<ResultProps> = ({
329329
{
330330
key: "refresh", text: nlsHPCC.Refresh, iconProps: { iconName: "Refresh" },
331331
onClick: () => {
332-
resultTable.reset();
333-
resultTable.render(() => setResult(resultTable.calcResult()));
332+
resultTable.bypassCache(true);
333+
try {
334+
resultTable.render(() => setResult(resultTable.calcResult()));
335+
} finally {
336+
resultTable.bypassCache(false);
337+
}
334338
}
335339
},
336340
{ key: "divider_1", itemType: ContextualMenuItemType.Divider, onRender: () => <ShortVerticalDivider /> },

0 commit comments

Comments
 (0)