mirror of
https://github.com/Elvanos/fantasia-archive.git
synced 2024-06-29 03:20:54 +12:00
0.1.8 - RC-4
This commit is contained in:
parent
7b27ba437a
commit
dcc2580f55
|
@ -653,15 +653,11 @@ export default class BaseClass extends Vue {
|
|||
|
||||
checkForLegacyDocuments () {
|
||||
return this.SGET_allDocuments.docs.filter(doc => {
|
||||
const docSnapShot: I_ShortenedDocument = extend(true, {}, doc)
|
||||
const localBlueprint = this.SGET_blueprint(docSnapShot.type)
|
||||
const localBlueprint = this.SGET_blueprint(doc.type)
|
||||
let hasLegacyValue = false
|
||||
|
||||
for (const field of docSnapShot.extraFields) {
|
||||
for (const field of doc.extraFields) {
|
||||
const pairedBlueprintField = localBlueprint.extraFields.find(e => e.id === field.id)
|
||||
if (docSnapShot._id === "e1e24951-e2af-4513-8e4c-50fb93fd94d9") {
|
||||
console.log(field.id)
|
||||
}
|
||||
|
||||
if (pairedBlueprintField && pairedBlueprintField.isLegacy && !hasLegacyValue) {
|
||||
const value = field.value
|
||||
|
|
Loading…
Reference in a new issue