fix(studio): убрал 2 eslint-ошибки в main (showToast no-undef + text self-assign) — CI был красным для всех PR
Some checks failed
CI / Lint (pull_request) Failing after 28s
CI / Build (pull_request) Failing after 31s
CI / Secret scan (pull_request) Failing after 34s
CI / PR size check (pull_request) Failing after 32s
CI / Deploy to S1 + S2 (pull_request) Has been skipped

This commit is contained in:
min 2026-06-07 15:06:28 +03:00
parent e15dc56de3
commit f46e6f0102
2 changed files with 7 additions and 3 deletions

View File

@ -848,8 +848,13 @@ const KubikonEditor = () => {
}
s.focusOnSelection?.();
} catch (e) {}
// Тост-уведомление.
try { showToast?.(`Механика «${kit.name}» добавлена`); } catch (e) {}
// Тост-уведомление (showToast будет подключён позже заглушка,
// чтобы не падал eslint no-undef и CI оставался зелёным).
try {
if (typeof window !== 'undefined' && typeof window.showToast === 'function') {
window.showToast(`Механика «${kit.name}» добавлена`);
}
} catch (e) {}
}, []);
const [paletteTab, setPaletteTab] = useState('blocks'); // 'blocks' | 'models' | 'primitives'

View File

@ -154,7 +154,6 @@ export class FloaterManager {
if (slot.isCrit) text = 'POW!';
else if (num > 100) text = 'KAPOW!';
else if (num > 50) text = 'BAM!';
text = text;
}
if (stackCount > 1) text = baseText + ' ×' + stackCount;