Your function is not returning the msg. so no option set. Then your change node overwrites msg.option with msg.payload.
But to only pass on changed msg.options compare the array lengths. e.g.
[{"id":"f454e332.520a5","type":"inject","z":"63af3844.ce5a8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"test1/Node1/2/Data","payload":"{\"ID\":\"13dfsl48\",\"TimeStamp\":0,\"SensorNamwe\":\"Sensor_3\",\"SensorRaw\":-332,\"SensorCal\":-234}","payloadType":"json","x":120,"y":480,"wires":[["e114e419.a101c8"]]},{"id":"e114e419.a101c8","type":"json","z":"63af3844.ce5a8","name":"","property":"payload","action":"obj","pretty":true,"x":290,"y":520,"wires":[["855b6a36.104f88","b1a7676e.dbe78"]]},{"id":"855b6a36.104f88","type":"function","z":"63af3844.ce5a8","name":"","func":"\nvar NodeArray = global.get(\"node_Arr\");\nlet NodeLength = NodeArray.length;\n\nvar Topic = msg.topic.split(\"/\");\nvar Node = Topic[1];\nNodeArray.push(Node);\n\n//Removing duplicates in Array\nlet y = (NodeArray) => NodeArray.filter((v,i) => NodeArray.indexOf(v) === i)\nconst unQNodeArr = y(NodeArray);\n\nif (unQNodeArr.length > NodeLength){\n msg.options = unQNodeArr;\n return msg;\n}else{\n return;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":430,"y":540,"wires":[["4d2e065.e237e78","b14b4ae5.4f17d8"]]},{"id":"b1a7676e.dbe78","type":"function","z":"63af3844.ce5a8","name":"","func":"\nvar DomainArray = global.get(\"domain_Arr\");\nlet DomainLength = DomainArray.length;\nlet Topic = msg.topic.split(\"/\");\n\nvar Domain = Topic[0];\nDomainArray.push(Domain);\n\n//Removing duplicates in Array\nlet x = (DomainArray) => DomainArray.filter((v,i) => DomainArray.indexOf(v) === i)\nconst unQDomainArr = x(DomainArray);\nif (unQDomainArr.length > DomainLength){\n msg.options = unQDomainArr;\n return msg;\n}else{\n return;\n}\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":430,"y":500,"wires":[["4d2e065.e237e78","2948e3a9.45edd4"]]},{"id":"7efe7e3e.a2ec2","type":"inject","z":"63af3844.ce5a8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"test2/Node2/3/Data","payload":"{\"ID\":\"2e3fffs\",\"TimeStamp\":0,\"SensorNamwe\":\"Sensor_5\",\"SensorRaw\":-197,\"SensorCal\":-165}","payloadType":"json","x":120,"y":540,"wires":[["e114e419.a101c8"]]},{"id":"fa85e99.3871e98","type":"inject","z":"63af3844.ce5a8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"test3/Node3/4/Data","payload":"{\"ID\":\"3fg4rks\",\"TimeStamp\":0,\"SensorNamwe\":\"Sensor_5\",\"SensorRaw\":-197,\"SensorCal\":-165}","payloadType":"json","x":120,"y":600,"wires":[["e114e419.a101c8"]]},{"id":"4d2e065.e237e78","type":"debug","z":"63af3844.ce5a8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":630,"y":520,"wires":[]},{"id":"b14b4ae5.4f17d8","type":"ui_dropdown","z":"63af3844.ce5a8","name":"","label":"","tooltip":"","place":"Select option","group":"165e1e1a.e752fa","order":6,"width":0,"height":0,"passthru":true,"multiple":false,"options":[{"label":"","value":"","type":"str"}],"payload":"","topic":"","x":660,"y":580,"wires":[[]]},{"id":"2948e3a9.45edd4","type":"ui_dropdown","z":"63af3844.ce5a8","name":"","label":"","tooltip":"","place":"Select option","group":"165e1e1a.e752fa","order":6,"width":0,"height":0,"passthru":true,"multiple":false,"options":[{"label":"","value":"","type":"str"}],"payload":"","topic":"","x":610,"y":460,"wires":[[]]},{"id":"165e1e1a.e752fa","type":"ui_group","z":"","name":"Default","tab":"f9b58883.fa613","order":1,"disp":true,"width":"12","collapse":false},{"id":"f9b58883.fa613","type":"ui_tab","z":"","name":"Home","icon":"dashboard","order":1,"disabled":false,"hidden":false}]