Skip to content

Commit 5d430e7

Browse files
[WC-2872] Fixed refresh interval to use seconds instead of ms (#1482)
2 parents 2326043 + ad7ba84 commit 5d430e7

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

packages/pluggableWidgets/datagrid-web/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## [Unreleased]
88

9+
### Fixed
10+
11+
- Fixed an issue where the refresh interval was incorrectly using milliseconds instead of seconds.
12+
913
## [2.30.1] - 2025-02-25
1014

1115
### Fixed

packages/pluggableWidgets/datagrid-web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@mendix/datagrid-web",
33
"widgetName": "Datagrid",
4-
"version": "2.30.1",
4+
"version": "2.30.2",
55
"description": "",
66
"copyright": "© Mendix Technology BV 2025. All rights reserved.",
77
"private": true,

packages/pluggableWidgets/datagrid-web/src/__tests__/RefreshController.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe("RefreshController", () => {
3535
});
3636

3737
it("should set up a timer if delay is greater than 0", () => {
38-
const controller = new RefreshController(host, { delay: 1000, query: atom });
38+
const controller = new RefreshController(host, { delay: 1, query: atom });
3939
const dispose = controller.setup();
4040
expect(dispose).toBeInstanceOf(Function);
4141

@@ -44,7 +44,7 @@ describe("RefreshController", () => {
4444
});
4545

4646
it("should clear the timer when dispose is called", () => {
47-
const controller = new RefreshController(host, { delay: 1000, query: atom });
47+
const controller = new RefreshController(host, { delay: 1, query: atom });
4848
const dispose = controller.setup();
4949
expect(dispose).toBeInstanceOf(Function);
5050

packages/pluggableWidgets/datagrid-web/src/helpers/state/RootGridStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export class RootGridStore extends BaseControllerHost {
5959

6060
new RefreshController(this, {
6161
query: computed(() => query.computedCopy),
62-
delay: props.refreshInterval
62+
delay: props.refreshInterval * 1000
6363
});
6464

6565
this.loaderCtrl = new DerivedLoaderController({

packages/pluggableWidgets/datagrid-web/src/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<package xmlns="http://www.mendix.com/package/1.0/">
3-
<clientModule name="Datagrid" version="2.30.1" xmlns="http://www.mendix.com/clientModule/1.0/">
3+
<clientModule name="Datagrid" version="2.30.2" xmlns="http://www.mendix.com/clientModule/1.0/">
44
<widgetFiles>
55
<widgetFile path="Datagrid.xml" />
66
</widgetFiles>

0 commit comments

Comments
 (0)