From 8a2a2d8af60e50c7428ef7e0f389334ca13c0c9b Mon Sep 17 00:00:00 2001 From: Forrest Li Date: Mon, 12 Jul 2021 10:53:52 -0400 Subject: [PATCH] fix(macro): add shouldUpdate guards shouldUpdate should check for a deleted output, since that would invalidate a getMTime() call. --- Sources/macro.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Sources/macro.js b/Sources/macro.js index 655d12e4c76..17206ac5387 100644 --- a/Sources/macro.js +++ b/Sources/macro.js @@ -705,6 +705,11 @@ export function algo(publicAPI, model, numberOfInputs, numberOfOutputs) { if (!model.output[count]) { return true; } + + if (model.output[count].isDeleted()) { + return true; + } + const mt = model.output[count].getMTime(); if (mt < localMTime) { return true;