From 3c8d81695cc218d153b99910698ae68e2c6947cc Mon Sep 17 00:00:00 2001 From: Christopher Willis-Ford <7019101+cwillisf@users.noreply.github.com> Date: Mon, 2 Oct 2023 14:05:04 -0700 Subject: [PATCH] fix: disable metadata for now --- src/containers/gui.jsx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/containers/gui.jsx b/src/containers/gui.jsx index bd46a2577..909e4d87f 100644 --- a/src/containers/gui.jsx +++ b/src/containers/gui.jsx @@ -41,16 +41,17 @@ import systemPreferencesHOC from '../lib/system-preferences-hoc.jsx'; import GUIComponent from '../components/gui/gui.jsx'; import {setIsScratchDesktop} from '../lib/isScratchDesktop.js'; -const {RequestMetadata, setMetadata, unsetMetadata} = storage.scratchFetch; +// const {RequestMetadata, setMetadata, unsetMetadata} = storage.scratchFetch; -const setProjectIdMetadata = projectId => { +// TODO: re-enable metadata +const setProjectIdMetadata = projectId => { // eslint-disable-line no-unused-vars // If project ID is '0' or zero, it's not a real project ID. In that case, remove the project ID metadata. // Same if it's null undefined. - if (projectId && projectId !== '0') { - setMetadata(RequestMetadata.ProjectId, projectId); - } else { - unsetMetadata(RequestMetadata.ProjectId); - } +// if (projectId && projectId !== '0') { +// setMetadata(RequestMetadata.ProjectId, projectId); +// } else { +// unsetMetadata(RequestMetadata.ProjectId); +// } }; class GUI extends React.Component {