Skip to content

Bug: Message detective search returns wrong message when message is deferred only once

Leandro Santiago requested to merge fix/494_wrong_detective_message into develop

Ref #494 (closed)

I realized that the v-if/v-else was not working in this case, where the resulting rendered values were totally arbitrary (as it v-if was caching was not being checked!!!).

I am not sure if we are misusing v-if or this is a bug in vue.js, but the fix consists on using v-show instead and checking the condition twice.

So, instead of:

if condition {
  showA()
} else {
  showB()
}

The code has been replaced by the very ugly, but effective:

if condition {
  showA()
}

if !condition {
  showB()
}

Again, I have no idea why this works and the if/else does not, but honestly I think the solution I got is good enough for now :-)

It really smells like a bug in vue.js, but as I haven't been able to reproduce deterministically, it's hard to report to the vue.js devs :-(

From the gitlab issue, now it's shown as:

image

Other examples:

image

and

image

Edited by Leandro Santiago

Merge request reports

Loading