TypeError: views/SnookerUtils.pug:13
    11| mixin PublicMatchList( league, hideTags, filter )
    12|     each match in league.matches
  > 13|         if filter(match)
    14|             - var player1StartPoints = match.startPoints[0] ? ( " (+" + match.startPoints[0] + ")" ) : "";
    15|             - var player2StartPoints = match.startPoints[1] ? ( " (+" + match.startPoints[1] + ")" ) : "";
    16| 

filter is not a function
    at Object.eval (eval at wrap (/Users/casnooker/Documents/snookerroom/Server/node_modules/pug-runtime/wrap.js:6:10), :5408:5)
    at Object.pug_interp [as PublicMatchList] (eval at wrap (/Users/casnooker/Documents/snookerroom/Server/node_modules/pug-runtime/wrap.js:6:10), :6321:4)
    at eval (eval at wrap (/Users/casnooker/Documents/snookerroom/Server/node_modules/pug-runtime/wrap.js:6:10), :7721:30)
    at block (eval at wrap (/Users/casnooker/Documents/snookerroom/Server/node_modules/pug-runtime/wrap.js:6:10), :7799:4)
    at Object.pug_interp (eval at wrap (/Users/casnooker/Documents/snookerroom/Server/node_modules/pug-runtime/wrap.js:6:10), :3094:10)
    at eval (eval at wrap (/Users/casnooker/Documents/snookerroom/Server/node_modules/pug-runtime/wrap.js:6:10), :7435:26)
    at template (eval at wrap (/Users/casnooker/Documents/snookerroom/Server/node_modules/pug-runtime/wrap.js:6:10), :7887:20)
    at Object.exports.renderFile (/Users/casnooker/Documents/snookerroom/Server/node_modules/pug/lib/index.js:427:38)
    at RenderPage (/Users/casnooker/Documents/snookerroom/Server/Snooker.js:5104:22)
    at RefreshMatches (/Users/casnooker/Documents/snookerroom/Server/Snooker.js:4074:20)