return null if no path
This commit is contained in:
parent
665a7818c9
commit
dd11708f9f
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue