mirror of
https://github.com/Elvanos/fantasia-archive.git
synced 2024-09-30 09:07:12 +13:00
0.1.8 - RC-4
This commit is contained in:
parent
7b27ba437a
commit
dcc2580f55
1 changed files with 2 additions and 6 deletions
|
@ -653,15 +653,11 @@ export default class BaseClass extends Vue {
|
||||||
|
|
||||||
checkForLegacyDocuments () {
|
checkForLegacyDocuments () {
|
||||||
return this.SGET_allDocuments.docs.filter(doc => {
|
return this.SGET_allDocuments.docs.filter(doc => {
|
||||||
const docSnapShot: I_ShortenedDocument = extend(true, {}, doc)
|
const localBlueprint = this.SGET_blueprint(doc.type)
|
||||||
const localBlueprint = this.SGET_blueprint(docSnapShot.type)
|
|
||||||
let hasLegacyValue = false
|
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)
|
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) {
|
if (pairedBlueprintField && pairedBlueprintField.isLegacy && !hasLegacyValue) {
|
||||||
const value = field.value
|
const value = field.value
|
||||||
|
|
Loading…
Reference in a new issue