summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graffiti.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/graffiti.js b/graffiti.js
index 9b92b4f..8875f8d 100644
--- a/graffiti.js
+++ b/graffiti.js
@@ -123,7 +123,8 @@ export default class {
const uuid = this.#objectUUID(object)
let originalObject = null
- for (const tag in this.tagMap) {
+ for (const tag of object._tags) {
+ if (!(tag in this.tagMap)) continue
const objectMap = this.tagMap[tag].objectMap
if (uuid in objectMap) {
@@ -153,7 +154,8 @@ export default class {
const uuid = this.#objectUUID(object)
let originalObject = null
- for (const tag in this.tagMap) {
+ for (const tag of object._tags) {
+ if (!(tag in this.tagMap)) continue
const objectMap = this.tagMap[tag].objectMap
if (!(uuid in objectMap)) return