From 26fbdc43e2d0296219b065ad4003d138d0f4fcfa Mon Sep 17 00:00:00 2001 From: Vijay A Date: Sat, 25 Sep 2021 20:30:11 +0530 Subject: fix: fix issue with new API of 'du' npm module --- src/components/settings/settings/EditSettingsForm.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/components/settings') diff --git a/src/components/settings/settings/EditSettingsForm.js b/src/components/settings/settings/EditSettingsForm.js index f5a29ff82..59aa0190e 100644 --- a/src/components/settings/settings/EditSettingsForm.js +++ b/src/components/settings/settings/EditSettingsForm.js @@ -25,6 +25,8 @@ import { import { openPath } from '../../../helpers/url-helpers'; import globalMessages from '../../../i18n/globalMessages'; +const debug = require('debug')('Ferdi:EditSettingsForm'); + const messages = defineMessages({ headlineGeneral: { id: 'settings.app.headlineGeneral', @@ -268,8 +270,10 @@ class EditSettingsForm extends Component { let notCleared; if (this.state.activeSetttingsTab === 'advanced') { const cacheSizeBytes = getCacheSize(); + debug('cacheSizeBytes:', cacheSizeBytes); if (typeof cacheSizeBytes === 'number') { cacheSize = prettyBytes(cacheSizeBytes); + debug('cacheSize:', cacheSize); notCleared = this.state.clearCacheButtonClicked && isClearingAllCache === false && -- cgit v1.2.3-70-g09d2