ydb-embedded-ui 1.8.5 → 1.8.6

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.8.6](https://github.com/ydb-platform/ydb-embedded-ui/compare/v1.8.5...v1.8.6) (2022-07-14)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **Tenant:** fix switching between groups and nodes on storage tab ([6923885](https://github.com/ydb-platform/ydb-embedded-ui/commit/6923885336fa21ac985879e41685137adbf8159a))
9
+
3
10
  ## [1.8.5](https://github.com/ydb-platform/ydb-embedded-ui/compare/v1.8.4...v1.8.5) (2022-07-11)
4
11
 
5
12
 
@@ -115,7 +115,9 @@ class Storage extends React.Component {
115
115
  filter: FILTER_OPTIONS[visibleEntities],
116
116
  type: storageType,
117
117
  });
118
+ };
118
119
 
120
+ const restartAutorefresh = () => {
119
121
  this.autofetcher.stop();
120
122
  this.autofetcher.start();
121
123
  this.autofetcher.fetch(() =>
@@ -131,14 +133,15 @@ class Storage extends React.Component {
131
133
  }
132
134
  if (database && autorefresh && !prevProps.autorefresh) {
133
135
  startFetch();
136
+ restartAutorefresh();
134
137
  }
135
138
 
136
- if (
137
- (storageType !== prevProps.storageType ||
138
- visibleEntities !== prevProps.visibleEntities) &&
139
- (!database || (database && autorefresh))
140
- ) {
139
+ if (storageType !== prevProps.storageType || visibleEntities !== prevProps.visibleEntities) {
141
140
  startFetch();
141
+
142
+ if (!database || (database && autorefresh)) {
143
+ restartAutorefresh();
144
+ }
142
145
  }
143
146
  }
144
147
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ydb-embedded-ui",
3
- "version": "1.8.5",
3
+ "version": "1.8.6",
4
4
  "files": [
5
5
  "dist"
6
6
  ],