Kaynağa Gözat

fucking build

Ivan Asmer 4 yıl önce
ebeveyn
işleme
3644ac233b
3 değiştirilmiş dosya ile 3316 ekleme ve 3291 silme
  1. 3314 3289
      package-lock.json
  2. 1 1
      src/App.js
  3. 1 1
      src/front-models.js

Dosya farkı çok büyük olduğundan ihmal edildi
+ 3314 - 3289
package-lock.json


+ 1 - 1
src/App.js

@@ -21,7 +21,7 @@ const ShortName = ({record, options}) => {
             const Formatter = options.view.relations[record.constructor.name]
             return <Formatter options={options}>{record}</Formatter>
     }
-    return (<>{(record && record.name) || record.key || record.login || record.originalFileName || record._id}</>)
+    return (<>{record && (record.name || record.key || record.login || record.originalFileName || record._id)}</>)
 }
 
 

+ 1 - 1
src/front-models.js

@@ -210,7 +210,7 @@ export default async function createModels2(gql, config={create: 'Upsert', updat
                         LIST(){
                             const otherType = inInputs(ofType.name)
                             if (otherType  && this[name] && this[name] instanceof Array)
-                                data[name] = this[name].map(otherEntity => (otherEntity && otherEntity._id ? {_id: otherEntity._id} : (otherEntity.mutationData || otherEntity)))
+                                data[name] = this[name].map(otherEntity => (otherEntity && otherEntity._id ? {_id: otherEntity._id} : (otherEntity || otherEntity)))
                         },
                         INPUT_OBJECT(){
                             const otherType = inInputs(otherName)