Skip to content

Commit 6b3d58d

Browse files
committed
Scale workload flickering issue fixed
1 parent c2ba5d9 commit 6b3d58d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/v2/appDetails/sourceInfo/EnvironmentSelector.component.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,10 @@ function EnvironmentSelectorComponent({
164164

165165
const deployedAppDetail = isExternalApp && params.appId && params.appId.split('|')
166166

167+
const handleScaleWorkloads = () => {
168+
setWorkloadsModal(true)
169+
}
170+
167171
return (
168172
<div className="flexbox flex-justify pl-20 pr-20 pt-16 pb-16">
169173
<div>
@@ -280,10 +284,10 @@ function EnvironmentSelectorComponent({
280284
Urls
281285
</button>
282286
)}
283-
{!showWorkloadsModal && !isVirtualEnvironment && (
287+
{!isVirtualEnvironment && (
284288
<button
285289
className="scale-workload__btn flex left cta cancel pb-6 pt-6 pl-12 pr-12 en-2 ml-6"
286-
onClick={() => setWorkloadsModal(true)}
290+
onClick={handleScaleWorkloads}
287291
data-testid="scale-workload-button-app-details"
288292
>
289293
<ScaleObjects className="mr-4" /> Scale workloads

0 commit comments

Comments
 (0)