Skip to content

Commit dcd5ad4

Browse files
collins-selfcollins-self
authored andcommitted
removed drowpdown type
1 parent 7bc2151 commit dcd5ad4

File tree

1 file changed

+3
-5
lines changed
  • Source/Applications/SystemCenter/wwwroot/Scripts/TSX/SystemCenter/Meter/PropertyUI

1 file changed

+3
-5
lines changed

Source/Applications/SystemCenter/wwwroot/Scripts/TSX/SystemCenter/Meter/PropertyUI/LocationDrawings.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import { CreateGuid } from '@gpa-gemstone/helper-functions';
3333
interface IProps {
3434
Locations: OpenXDA.Types.Location[];
3535
}
36-
type dropdownOption = { Label: string; Callback: () => void; Disabled: boolean; }
3736

3837
const LocationDrawings = (props: IProps) => {
3938
const dispatch = useAppDispatch();
@@ -50,17 +49,16 @@ const LocationDrawings = (props: IProps) => {
5049
const [showDropdown, setShowDropdown] = React.useState<boolean>();
5150

5251
React.useEffect(() => {
53-
if (drawingStatus == 'unintiated' || drawingStatus == 'changed' || drawingParentID != selectedLocation) {
52+
if (drawingStatus == 'unintiated' || drawingStatus == 'changed' || drawingParentID != selectedLocation)
5453
dispatch(LocationDrawingSlice.Fetch(selectedLocation));
55-
}
5654
}, [drawingStatus, drawingParentID, selectedLocation]);
5755

5856
React.useEffect(() => {
5957
setShowDropdown(props.Locations.length > 1);
6058
}, [props.Locations])
6159

62-
function dropdownOptions(): dropdownOption[] {
63-
const options: dropdownOption[] = [];
60+
function dropdownOptions(): { Label: string; Callback: () => void; Disabled: boolean; }[] {
61+
const options: { Label: string; Callback: () => void; Disabled: boolean; }[] = [];
6462
const labels: string[] = props.Locations.map(loc => loc.Name);
6563
labels.forEach((label, index) => {
6664
options.push({

0 commit comments

Comments
 (0)