Skip to content

Commit 6f8ed90

Browse files
authored
fix line type catalog (#3184)
Signed-off-by: Etienne LESOT <[email protected]>
1 parent ee0190e commit 6f8ed90

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/dialogs/line-types-catalog/line-types-catalog-selector-dialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export default function LineTypesCatalogSelectorDialog({
141141
const shapeFactorValue = parseFloat(shapeFactorId);
142142
if (!isNaN(shapeFactorValue) && shapeFactorValue !== 0) {
143143
filteredLimits.forEach((limit) => {
144-
limit.permanentLimit = limit.permanentLimit / shapeFactorValue;
144+
limit.permanentLimit = Math.floor(limit.permanentLimit / shapeFactorValue);
145145
});
146146
selectedUndergroundRow.limitsForLineType = filteredLimits;
147147
}

src/components/dialogs/line-types-catalog/line-types-catalog-selector-form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export default function LineTypesCatalogSelectorForm({
9494

9595
const renderTabContent = (isAerial: boolean) => (
9696
<>
97-
<div style={{ height: '80%', marginTop: '1%' }}>
97+
<div style={{ height: '75%', marginTop: '1%' }}>
9898
<LimitCustomAgGrid
9999
gridRef={gridRef}
100100
currentTab={tabIndex}

0 commit comments

Comments
 (0)