clear comboItem error handling
This commit is contained in:
parent
27c562d41b
commit
c1d4dd3620
@ -20,6 +20,11 @@ class InfoComponent extends preact.Component {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
componentDidUpdate(prevProps) {
|
||||||
|
// Catch case where mouse events don't properly clear state and info changed
|
||||||
|
if (prevProps.info !== this.props.info) this.setState({ comboItem: null });
|
||||||
|
}
|
||||||
|
|
||||||
render(args) {
|
render(args) {
|
||||||
const {
|
const {
|
||||||
// Variables that will change
|
// Variables that will change
|
||||||
@ -36,7 +41,6 @@ class InfoComponent extends preact.Component {
|
|||||||
setTutorialNull,
|
setTutorialNull,
|
||||||
} = args;
|
} = args;
|
||||||
const { comboItem } = this.state;
|
const { comboItem } = this.state;
|
||||||
console.log(comboItem);
|
|
||||||
function Info() {
|
function Info() {
|
||||||
if (tutorial) {
|
if (tutorial) {
|
||||||
const tutorialStageInfo = tutorialStage(tutorial, ws, setTutorialNull, instance);
|
const tutorialStageInfo = tutorialStage(tutorial, ws, setTutorialNull, instance);
|
||||||
@ -82,7 +86,6 @@ class InfoComponent extends preact.Component {
|
|||||||
if (isSkill || isSpec) {
|
if (isSkill || isSpec) {
|
||||||
let infoName = fullInfo.item;
|
let infoName = fullInfo.item;
|
||||||
while (infoName.includes('Plus')) infoName = infoName.replace('Plus', '+');
|
while (infoName.includes('Plus')) infoName = infoName.replace('Plus', '+');
|
||||||
console.log(fullInfo);
|
|
||||||
|
|
||||||
const itemSource = itemInfo.combos.filter(c => c.item === removeTier(fullInfo.item));
|
const itemSource = itemInfo.combos.filter(c => c.item === removeTier(fullInfo.item));
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user