File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -41,17 +41,16 @@ import systemPreferencesHOC from '../lib/system-preferences-hoc.jsx';
4141import GUIComponent from '../components/gui/gui.jsx' ;
4242import { setIsScratchDesktop } from '../lib/isScratchDesktop.js' ;
4343
44- // const {RequestMetadata, setMetadata, unsetMetadata} = storage.scratchFetch;
44+ const { RequestMetadata, setMetadata, unsetMetadata} = storage . scratchFetch ;
4545
46- // TODO: re-enable metadata
47- const setProjectIdMetadata = projectId => { // eslint-disable-line no-unused-vars
46+ const setProjectIdMetadata = projectId => {
4847 // If project ID is '0' or zero, it's not a real project ID. In that case, remove the project ID metadata.
4948 // Same if it's null undefined.
50- // if (projectId && projectId !== '0') {
51- // setMetadata(RequestMetadata.ProjectId, projectId);
52- // } else {
53- // unsetMetadata(RequestMetadata.ProjectId);
54- // }
49+ if ( projectId && projectId !== '0' ) {
50+ setMetadata ( RequestMetadata . ProjectId , projectId ) ;
51+ } else {
52+ unsetMetadata ( RequestMetadata . ProjectId ) ;
53+ }
5554} ;
5655
5756class GUI extends React . Component {
You can’t perform that action at this time.
0 commit comments