link: fix api call to change description
When changing description, some pre-metadata refactors were resulting in
permanently broken calls to the API. This accesses our resource object
correctly.
@@ -239,8 +239,8 @@ export class SettingsScreen extends Component {
props.groupPath,
resource.metadata.title,
state.description,
- resource['date-created'],
- uxToHex(resource.color)
+ resource.metadata['date-created'],
+ uxToHex(resource.metadata.color)
).then(() => {
api.setSpinner(false);
});
