0.1.8 - RC-4

This commit is contained in:
Elvanos 2021-07-06 02:40:34 +02:00
parent 7b27ba437a
commit dcc2580f55

View file

@ -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