From 7cf3b742364efc4ccdeb1a35475fb2ccd7e93472 Mon Sep 17 00:00:00 2001 From: Michael Lange Date: Fri, 4 Sep 2020 00:44:49 -0700 Subject: [PATCH] Fix factory bug that made it so pending allocs had no resources --- ui/mirage/factories/allocation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/mirage/factories/allocation.js b/ui/mirage/factories/allocation.js index c571271d0..c901a08ca 100644 --- a/ui/mirage/factories/allocation.js +++ b/ui/mirage/factories/allocation.js @@ -206,7 +206,7 @@ export default Factory.extend({ allocation.update({ taskStateIds: allocation.clientStatus === 'pending' ? [] : states.mapBy('id'), - taskResourceIds: allocation.clientStatus === 'pending' ? [] : resources.mapBy('id'), + taskResourceIds: resources.mapBy('id'), }); // Each allocation has a corresponding allocation stats running on some client.