Skip to content

Commit 74bb119

Browse files
committed
Revert "fix: disable metadata for now"
This reverts commit 3c8d816.
1 parent 19ee0ae commit 74bb119

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/containers/gui.jsx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,16 @@ 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-
// TODO: re-enable metadata
48-
const setProjectIdMetadata = projectId => { // eslint-disable-line no-unused-vars
47+
const setProjectIdMetadata = projectId => {
4948
// If project ID is '0' or zero, it's not a real project ID. In that case, remove the project ID metadata.
5049
// 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+
}
5655
};
5756

5857
class GUI extends React.Component {

0 commit comments

Comments
 (0)