Skip to content

Commit 19ee0ae

Browse files
committed
Revert "Revert "fix: disable metadata for now""
This reverts commit 46c39ea.
1 parent f5cec9b commit 19ee0ae

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/containers/gui.jsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,17 @@ import systemPreferencesHOC from '../lib/system-preferences-hoc.jsx';
4242
import GUIComponent from '../components/gui/gui.jsx';
4343
import {setIsScratchDesktop} from '../lib/isScratchDesktop.js';
4444

45-
const {RequestMetadata, setMetadata, unsetMetadata} = storage.scratchFetch;
45+
// const {RequestMetadata, setMetadata, unsetMetadata} = storage.scratchFetch;
4646

47-
const setProjectIdMetadata = projectId => {
47+
// TODO: re-enable metadata
48+
const setProjectIdMetadata = projectId => { // eslint-disable-line no-unused-vars
4849
// If project ID is '0' or zero, it's not a real project ID. In that case, remove the project ID metadata.
4950
// Same if it's null undefined.
50-
if (projectId && projectId !== '0') {
51-
setMetadata(RequestMetadata.ProjectId, projectId);
52-
} else {
53-
unsetMetadata(RequestMetadata.ProjectId);
54-
}
51+
// if (projectId && projectId !== '0') {
52+
// setMetadata(RequestMetadata.ProjectId, projectId);
53+
// } else {
54+
// unsetMetadata(RequestMetadata.ProjectId);
55+
// }
5556
};
5657

5758
class GUI extends React.Component {

0 commit comments

Comments
 (0)