Spaces:
Paused
Paused
Savestate: Fix undefined property deck.name to deck.title
Browse files- index.html +1 -1
- src/views/learn/learn-view.js +1 -1
index.html
CHANGED
|
@@ -74,7 +74,7 @@
|
|
| 74 |
</head>
|
| 75 |
<body class="dark-theme in-chat-view">
|
| 76 |
|
| 77 |
-
<div id="live-version-badge" style="position: fixed; top: 50px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--text-secondary); opacity: 0.6; z-index: 99999; pointer-events: none; font-weight: 500; font-family: monospace; letter-spacing: 1px; background: rgba(0,0,0,0.2); padding: 2px 8px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.05);">BUILD 1.8.
|
| 78 |
|
| 79 |
<!-- SVG Filters for Liquid Glass Refraction -->
|
| 80 |
<svg width="0" height="0" style="position: absolute; pointer-events: none;">
|
|
|
|
| 74 |
</head>
|
| 75 |
<body class="dark-theme in-chat-view">
|
| 76 |
|
| 77 |
+
<div id="live-version-badge" style="position: fixed; top: 50px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--text-secondary); opacity: 0.6; z-index: 99999; pointer-events: none; font-weight: 500; font-family: monospace; letter-spacing: 1px; background: rgba(0,0,0,0.2); padding: 2px 8px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.05);">BUILD 1.8.294</div>
|
| 78 |
|
| 79 |
<!-- SVG Filters for Liquid Glass Refraction -->
|
| 80 |
<svg width="0" height="0" style="position: absolute; pointer-events: none;">
|
src/views/learn/learn-view.js
CHANGED
|
@@ -824,7 +824,7 @@ Antworte AUSSCHLIESSLICH mit einem validen JSON-Objekt ohne Markdown-Block drumh
|
|
| 824 |
const hasImage = !!card.image_url && card.image_url !== 'null';
|
| 825 |
|
| 826 |
const deck = db.exec("SELECT * FROM flashcard_decks WHERE id = ?", [this.activeDeckId])[0];
|
| 827 |
-
const deckName = deck ? deck.
|
| 828 |
let lang = 'en-US';
|
| 829 |
if (deckName.includes('spanisch') || deckName.includes('spanish')) lang = 'es-ES';
|
| 830 |
else if (deckName.includes('französisch') || deckName.includes('french')) lang = 'fr-FR';
|
|
|
|
| 824 |
const hasImage = !!card.image_url && card.image_url !== 'null';
|
| 825 |
|
| 826 |
const deck = db.exec("SELECT * FROM flashcard_decks WHERE id = ?", [this.activeDeckId])[0];
|
| 827 |
+
const deckName = (deck && deck.title) ? deck.title.toLowerCase() : '';
|
| 828 |
let lang = 'en-US';
|
| 829 |
if (deckName.includes('spanisch') || deckName.includes('spanish')) lang = 'es-ES';
|
| 830 |
else if (deckName.includes('französisch') || deckName.includes('french')) lang = 'fr-FR';
|