We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15817f9 commit 184fd65Copy full SHA for 184fd65
1 file changed
src/pages/api/widgets/resources.js
@@ -22,7 +22,9 @@ export default async function handler(req, res) {
22
const fsSize = await si.fsSize();
23
logger.debug("fsSize:", JSON.stringify(fsSize));
24
25
- const drive = fsSize.find((fs) => fs.mount === requested) ?? fsSize.find((fs) => fs.mount === "/");
+ const drive = fsSize.find((fs) => {
26
+ return fs.mount === requested;
27
+ });
28
29
if (!drive) {
30
logger.warn(`Drive not found for target: ${requested}`);
0 commit comments