Skip to content

Commit 4b0d41b

Browse files
committed
fix: use cardID, courseID fields...
instead of flakey string split
1 parent ca9f81d commit 4b0d41b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/common-ui/src/components/StudySession.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,8 +562,9 @@ export default defineComponent({
562562
this.cardType = item.status;
563563
564564
const qualified_id = item.qualifiedID;
565+
const _courseID = item.courseID;
566+
const _cardID = item.cardID;
565567
this.loading = true;
566-
const [_courseID, _cardID] = qualified_id.split('-');
567568
568569
console.log(`[StudySession] Now displaying: ${qualified_id}`);
569570

0 commit comments

Comments
 (0)