Commit 2914c2fb authored by nanahira's avatar nanahira

unique key for key meta

parent 392e0761
......@@ -47,7 +47,7 @@ export class MetadataSetter<M extends StringDict, AM extends StringDict> {
const newValue = metadataValueFun(oldValue);
this.setMetadataInDecorator(metadataKey, newValue, targetClass, key);
if (keysIndexMeta) {
const keysDec = this.append<IK, any>(keysIndexMeta, key);
const keysDec = this.appendUnique<IK, any>(keysIndexMeta, key);
keysDec(targetClass);
}
if (descriptor) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment