runtime/wasm: Update store.get to handle optional entities
@@ -394,7 +394,7 @@ where
self.store
.get(store_key)
.and_then(|entity| {
- let entity = EntityOperation::apply_all(Some(entity), &matching_operations);
+ let entity = EntityOperation::apply_all(entity, &matching_operations);
Ok(entity.map(|entity| RuntimeValue::from(self.heap.asc_new(&entity))))
}).or(Ok(Some(RuntimeValue::from(0))))
}
