Importing should not populate custom keys with NanoID to decouple from the binary NanoID generator.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2022-09-02 10:15:45 -05:00
parent 6bd9647dbd
commit f083d7df47

View File

@ -234,7 +234,7 @@ Tiddler >> fromDictionary: aDictionary [
revision: (aDictionary at: 'revision' ifAbsentPut: [ nil ]). revision: (aDictionary at: 'revision' ifAbsentPut: [ nil ]).
customKeys := aDictionary keys customKeys := aDictionary keys
copyWithoutAll: (self class instanceVariables collect: [ :each | each name ]). copyWithoutAll: (self class instanceVariables collect: [ :each | each name ]).
(customKeys includes: 'uid') ifFalse: [ self uidGenerator ]. "(customKeys includes: 'uid') ifFalse: [ self uidGenerator ]."
customKeys do: [:key | | valueTemp | customKeys do: [:key | | valueTemp |
valueTemp := aDictionary at: key. valueTemp := aDictionary at: key.
valueTemp class = Array valueTemp class = Array