Переглянути джерело

fix: object compare was incorrect

Kristian Vos 2 роки тому
батько
коміт
cc7c229886
1 змінених файлів з 4 додано та 1 видалено
  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", {