fix(studio): убрал 2 eslint-ошибки в main (showToast no-undef + text self-assign) — CI был красным для всех PR
Some checks failed
Some checks failed
This commit is contained in:
parent
e15dc56de3
commit
f46e6f0102
@ -848,8 +848,13 @@ const KubikonEditor = () => {
|
|||||||
}
|
}
|
||||||
s.focusOnSelection?.();
|
s.focusOnSelection?.();
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
// Тост-уведомление.
|
// Тост-уведомление (showToast будет подключён позже — заглушка,
|
||||||
try { showToast?.(`Механика «${kit.name}» добавлена`); } catch (e) {}
|
// чтобы не падал 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'
|
const [paletteTab, setPaletteTab] = useState('blocks'); // 'blocks' | 'models' | 'primitives'
|
||||||
|
|||||||
@ -154,7 +154,6 @@ export class FloaterManager {
|
|||||||
if (slot.isCrit) text = 'POW!';
|
if (slot.isCrit) text = 'POW!';
|
||||||
else if (num > 100) text = 'KAPOW!';
|
else if (num > 100) text = 'KAPOW!';
|
||||||
else if (num > 50) text = 'BAM!';
|
else if (num > 50) text = 'BAM!';
|
||||||
text = text;
|
|
||||||
}
|
}
|
||||||
if (stackCount > 1) text = baseText + ' ×' + stackCount;
|
if (stackCount > 1) text = baseText + ' ×' + stackCount;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user