Ver Fonte

fix: object compare was incorrect

Kristian Vos há 2 anos atrás
pai
commit
cc7c229886
1 ficheiros alterados com 4 adições e 1 exclusões
  1. 4 1
      backend/logic/actions/stations.js

+ 4 - 1
backend/logic/actions/stations.js

@@ -1368,7 +1368,10 @@ export default {
 				},
 
 				(station, previousStation, next) => {
-					if (newStation.autofill.enabled && newStation.autofill !== previousStation.autofill)
+					if (
+						newStation.autofill.enabled &&
+						JSON.stringify(newStation.autofill) !== JSON.stringify(previousStation.autofill)
+					)
 						StationsModule.runJob("AUTOFILL_STATION", { stationId }, this)
 							.then(() => {
 								CacheModule.runJob("PUB", {