Skip to content

Commit b266ac3

Browse files
authored
Merge pull request #9242 from scratchfoundation/disable-metadata
fix: disable metadata for now
2 parents d769a2b + 3c8d816 commit b266ac3

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
@@ -41,16 +41,17 @@ import systemPreferencesHOC from '../lib/system-preferences-hoc.jsx';
4141
import GUIComponent from '../components/gui/gui.jsx';
4242
import {setIsScratchDesktop} from '../lib/isScratchDesktop.js';
4343

44-
const {RequestMetadata, setMetadata, unsetMetadata} = storage.scratchFetch;
44+
// const {RequestMetadata, setMetadata, unsetMetadata} = storage.scratchFetch;
4545

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

5657
class GUI extends React.Component {

0 commit comments

Comments
 (0)