Skip to content

Commit 4dba881

Browse files
fix code mistake
1 parent 944f79d commit 4dba881

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/pages/sidepanel/PlaybookDropdown.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ export default function PlaybookDropdown() {
1111
}, []);
1212

1313
async function getPlaybookList() {
14-
const id = await getCurrentUserTeamId();
14+
const temaId = await getCurrentUserTeamId();
1515
try {
16-
if (!id) {
17-
throw new Error("Id not found");
16+
if (!temaId) {
17+
throw new Error("Team Id not found");
1818
}
1919
const response = await fetch(
20-
`http://localhost:3000/api/playbook/list?team_id=${id}`
20+
`http://localhost:3000/api/playbook/list?team_id=${temaId}`
2121
);
2222

2323
if (!response.ok) {
@@ -27,7 +27,7 @@ export default function PlaybookDropdown() {
2727
}
2828

2929
const playbook = await response.json();
30-
console.log("playbook LIST DATA:", playbook);
30+
console.log("[playbook LIST DATA]", playbook);
3131

3232
setPlaybookList(playbook);
3333
setSelected(playbook[0]);

0 commit comments

Comments
 (0)