kept seeing an error in this bundle code and dove ...
# random
c
kept seeing an error in this bundle code and dove in.. first thing I saw. Not going to be good. The if statement is wrong although it would be nice to write them like this.
🤢 1
c
Run this in your browser console if you're feeling like crying:
var type='EDIT';
var result = (type=='CREATE'||'COPY'||'EDIT');
console.log(result);
type='CREATE';
var result2 = (type=='CREATE'||'COPY'||'EDIT');
console.log(result2);
type='FAIL';
var result3 = (type=='CREATE'||'COPY'||'EDIT');
console.log(result3);
k
My senses tell me there's big issues here.
But can't point to a specific issue.
c
there's an else condition it'll never hit
as long as anything is there for type (which there will be) it'll do the 1st if
z
Something tells me that whole script should just be scrapped. lol
c
Yeah I saw it wasn't something we did and just let it be. I just wanted to see if it was something functional that was causing the issue then I saw all of this.