Commit 4dba881 1 parent 944f79d commit 4dba881 Copy full SHA for 4dba881
File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,13 @@ export default function PlaybookDropdown() {
11
11
} , [ ] ) ;
12
12
13
13
async function getPlaybookList ( ) {
14
- const id = await getCurrentUserTeamId ( ) ;
14
+ const temaId = await getCurrentUserTeamId ( ) ;
15
15
try {
16
- if ( ! id ) {
17
- throw new Error ( "Id not found" ) ;
16
+ if ( ! temaId ) {
17
+ throw new Error ( "Team Id not found" ) ;
18
18
}
19
19
const response = await fetch (
20
- `http://localhost:3000/api/playbook/list?team_id=${ id } `
20
+ `http://localhost:3000/api/playbook/list?team_id=${ temaId } `
21
21
) ;
22
22
23
23
if ( ! response . ok ) {
@@ -27,7 +27,7 @@ export default function PlaybookDropdown() {
27
27
}
28
28
29
29
const playbook = await response . json ( ) ;
30
- console . log ( "playbook LIST DATA: " , playbook ) ;
30
+ console . log ( "[ playbook LIST DATA] " , playbook ) ;
31
31
32
32
setPlaybookList ( playbook ) ;
33
33
setSelected ( playbook [ 0 ] ) ;
You can’t perform that action at this time.
0 commit comments