Fix bug from Bluebird removal

Bluebird had a `Promise.filter` method

Fixes failing data directory tests
This commit is contained in:
Dan Stillman 2025-07-27 00:34:23 -04:00
parent 9f038891ef
commit e07ac6243c

View file

@ -300,7 +300,7 @@ Zotero.Profile = {
_findOtherProfiles: async function () {
var profileDir = this.dir;
var profilesDir = this.getProfilesDir();
return this._getProfilesInDir(profilesDir).filter(dir => dir != profileDir);
return (await this._getProfilesInDir(profilesDir)).filter(dir => dir != profileDir);
},