Skip to content

Commit

Permalink
Fixes bug in LocTraits.preExamine not returning ""
Browse files Browse the repository at this point in the history
  • Loading branch information
Baltasarq committed Sep 9, 2023
1 parent 1716038 commit 97fe877
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/fi.js
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@ const LocTraits = (function() {
// Pre- and post- actions --------------------------------
function preExamine()
{
return "";
}

function postExamine()
Expand Down Expand Up @@ -1882,7 +1883,9 @@ const ctrl = ( function() {

let newDesc = loc.preExamine();

if ( newDesc != "" ) {
if ( newDesc != null
&& newDesc != "" )
{
desc = newDesc;
}

Expand Down

0 comments on commit 97fe877

Please sign in to comment.