FIX: removes legacy Ember.keys usage causing a crash (#13085)

The crash:

```
Uncaught TypeError: Ember.keys is not a function
```

Repro:

- visit home page
- click new topic
- navigate to your messages by clicking your avatar (top right), then enveloppe icon, and finally the bottom chevron
- click New Message
- click cancel in the composer, it should crash
This commit is contained in:
Joffrey JAFFEUX 2021-05-18 12:23:41 +02:00 committed by GitHub
parent c1dfd76658
commit c78f32a9a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -480,7 +480,7 @@ const Composer = RestModel.extend({
@discourseComputed("metaData")
hasMetaData(metaData) {
return metaData ? isEmpty(Ember.keys(metaData)) : false;
return metaData ? isEmpty(Object.keys(metaData)) : false;
},
replyDirty: propertyNotEqual("reply", "originalText"),