|
|
@@ -3,6 +3,11 @@
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
*/
|
|
|
|
|
|
+/**
|
|
|
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
|
+ * SPDX-License-Identifier: MIT
|
|
|
+ */
|
|
|
+
|
|
|
import { useEffect, useState } from 'react';
|
|
|
|
|
|
import { NodeReport } from '@flowgram.ai/runtime-interface';
|
|
|
@@ -22,7 +27,10 @@ const useNodeReport = () => {
|
|
|
if (nodeReport.id !== node.id) {
|
|
|
return;
|
|
|
}
|
|
|
- setReport(nodeReport);
|
|
|
+ setReport((prev) =>({
|
|
|
+ ...prev,
|
|
|
+ ...nodeReport,
|
|
|
+ }));
|
|
|
});
|
|
|
const resetDisposer = runtimeService.onReset(() => {
|
|
|
setReport(undefined);
|