Skip to content

Commit 4ed5e88

Browse files
committed
FE: Fix state sync
1 parent 07190b2 commit 4ed5e88

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

frontend/src/components/ClusterPage/ClusterPage.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,8 @@ const ClusterPage: React.FC = () => {
6161
hasAclViewConfigured:
6262
features.includes(ClusterFeaturesEnum.KAFKA_ACL_VIEW) ||
6363
features.includes(ClusterFeaturesEnum.KAFKA_ACL_EDIT),
64-
ftsEnabled: features.includes(ClusterFeaturesEnum.FTS_ENABLED),
65-
ftsDefaultEnabled: features.includes(
66-
ClusterFeaturesEnum.FTS_DEFAULT_ENABLED
67-
),
64+
ftsEnabled: true,
65+
ftsDefaultEnabled: true,
6866
};
6967
}, [clusterName, data]);
7068

frontend/src/components/common/Fts/useFts.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const useFts = (resourceName: FtsAvailableResource) => {
2121
if (!isFtsFeatureEnabled) {
2222
searchParams.delete('fts');
2323
localStorage.removeItem(storageKey);
24+
return;
2425
}
2526

2627
if (!searchParams.has('fts')) {

0 commit comments

Comments
 (0)