return null if no path

This commit is contained in:
Jiiks 2019-02-28 15:20:36 +02:00
parent 665a7818c9
commit dd11708f9f
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ export default class Config extends Module {
getPath(id, full) {
const path = this.paths.find(p => p.id === id);
if (!path) return null;
return full ? path : path.path;
}