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 @@ -42,17 +42,16 @@ import systemPreferencesHOC from '../lib/system-preferences-hoc.jsx';
42
42
import GUIComponent from '../components/gui/gui.jsx' ;
43
43
import { setIsScratchDesktop } from '../lib/isScratchDesktop.js' ;
44
44
45
- // const {RequestMetadata, setMetadata, unsetMetadata} = storage.scratchFetch;
45
+ const { RequestMetadata, setMetadata, unsetMetadata} = storage . scratchFetch ;
46
46
47
- // TODO: re-enable metadata
48
- const setProjectIdMetadata = projectId => { // eslint-disable-line no-unused-vars
47
+ const setProjectIdMetadata = projectId => {
49
48
// If project ID is '0' or zero, it's not a real project ID. In that case, remove the project ID metadata.
50
49
// Same if it's null undefined.
51
- // if (projectId && projectId !== '0') {
52
- // setMetadata(RequestMetadata.ProjectId, projectId);
53
- // } else {
54
- // unsetMetadata(RequestMetadata.ProjectId);
55
- // }
50
+ if ( projectId && projectId !== '0' ) {
51
+ setMetadata ( RequestMetadata . ProjectId , projectId ) ;
52
+ } else {
53
+ unsetMetadata ( RequestMetadata . ProjectId ) ;
54
+ }
56
55
} ;
57
56
58
57
class GUI extends React . Component {
You can’t perform that action at this time.
0 commit comments