TP-28649 | Removed extra commit
This commit is contained in:
@@ -30,7 +30,6 @@ const Metrics = () => {
|
||||
const navigate = useNavigate();
|
||||
|
||||
const [showCustomModal, setShowCustomModal] = useState(false);
|
||||
const [metricId, setMetricId] = useState('');
|
||||
|
||||
const { metricsDetails, isLoading } = useAppSelector(
|
||||
(state) => state.litmusFormDataStore,
|
||||
@@ -153,10 +152,7 @@ const Metrics = () => {
|
||||
|
||||
<div className={`${commonStyles['action-btn']}`}>
|
||||
<Button
|
||||
onClick={() => {
|
||||
setShowCustomModal(true);
|
||||
setMetricId('');
|
||||
}}
|
||||
onClick={() => setShowCustomModal(true)}
|
||||
className={commonStyles['height-40']}
|
||||
disabled={!isAdmin}
|
||||
>
|
||||
@@ -173,10 +169,6 @@ const Metrics = () => {
|
||||
theme="alpine"
|
||||
rowHeight={80}
|
||||
paginationWrapperClasses="pagination-wrapper"
|
||||
onRowClicked={(event) => {
|
||||
setShowCustomModal(true);
|
||||
setMetricId(event.data?.metricId);
|
||||
}}
|
||||
PaginationComponent={
|
||||
<Pagination
|
||||
totalCount={metricsDetails?.totalSize || 0}
|
||||
@@ -196,7 +188,6 @@ const Metrics = () => {
|
||||
<CreateMetricModal
|
||||
onClose={() => setShowCustomModal(false)}
|
||||
showCustomModal={showCustomModal}
|
||||
metricId={metricId}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user