File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Source/Applications/SystemCenter/wwwroot/Scripts/TSX/SystemCenter/Meter/PropertyUI Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ import { CreateGuid } from '@gpa-gemstone/helper-functions';
3333interface IProps {
3434 Locations : OpenXDA . Types . Location [ ] ;
3535}
36- type dropdownOption = { Label : string ; Callback : ( ) => void ; Disabled : boolean ; }
3736
3837const 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 ( {
You can’t perform that action at this time.
0 commit comments