File tree Expand file tree Collapse file tree 4 files changed +15
-13
lines changed Expand file tree Collapse file tree 4 files changed +15
-13
lines changed Original file line number Diff line number Diff line change 6
6
7
7
8
8
class UrgencyLevel (Enum ):
9
- ONE = 1
10
- TWO = 2
11
- THREE = 3
12
- FOUR = 4
13
- FIVE = 5
9
+ _1 = 1
10
+ _2 = 2
11
+ _3 = 3
12
+ _4 = 4
13
+ _5 = 5
14
14
15
15
16
16
class Visit (models .Model ):
@@ -21,4 +21,4 @@ class Visit(models.Model):
21
21
ProgramServiceMap , null = True , on_delete = models .CASCADE
22
22
)
23
23
notes = models .TextField ("Visit Notes" , null = True , blank = True )
24
- urgency = models .CharField (choices = URGENCY_LEVEL , max_length = 20 , default = UrgencyLevel .ONE )
24
+ urgency = models .CharField (choices = URGENCY_LEVEL , max_length = 20 , default = UrgencyLevel ._1 )
Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ const App = observer(() => {
28
28
}
29
29
}
30
30
stillAuthenticated ( )
31
- //Add in dependency to eliminate eslint error
31
+ //Suppress eslint error for []
32
+ //eslint-disable-next-line react-hooks/exhaustive-deps
32
33
} , [ ] ) // Hooks equivalent to "componentDidMount"
33
34
34
35
if ( rootStore . authStore . isAuthenticated === null ) {
Original file line number Diff line number Diff line change @@ -18,11 +18,12 @@ const ParticipantsList = observer(() => {
18
18
const [ isLoading , setIsLoading ] = useState ( false )
19
19
20
20
// useEffect is a hook that gets called after every render/re-render. Empty array second argument prevents it from running again.
21
- // Empty array throws eslint warning--treated as an error in TravisCI. Including dependency to resolve it.
22
21
useEffect ( ( ) => {
23
22
setIsLoading ( true )
24
23
participantsStore . getParticipants ( )
25
24
setIsLoading ( false )
25
+ //Suppress eslint error for []
26
+ //eslint-disable-next-line react-hooks/exhaustive-deps
26
27
} , [ ] )
27
28
28
29
return (
Original file line number Diff line number Diff line change @@ -49,11 +49,11 @@ const QueueTable = observer(queueData => {
49
49
]
50
50
51
51
const urgencyOptions = [
52
- { value : "ONE " , name : 1 } ,
53
- { value : "TWO " , name : 2 } ,
54
- { value : "THREE " , name : 3 } ,
55
- { value : "FOUR " , name : 4 } ,
56
- { value : "FIVE " , name : 5 } ,
52
+ { value : "_1 " , name : 1 } ,
53
+ { value : "_2 " , name : 2 } ,
54
+ { value : "_3 " , name : 3 } ,
55
+ { value : "_4 " , name : 4 } ,
56
+ { value : "_5 " , name : 5 } ,
57
57
]
58
58
59
59
const NotesButton = visitId => {
You can’t perform that action at this time.
0 commit comments