Showing
1 changed file
with
5 additions
and
0 deletions
1 | <script lang="ts" setup> | 1 | <script lang="ts" setup> |
2 | import { computed, ref, unref } from 'vue' | 2 | import { computed, ref, unref } from 'vue' |
3 | +import { isNullOrUnDef } from '@wry-smile/utils-is' | ||
3 | import type { RenderComponentExposeType, RenderComponentProps } from '@/core/Library/types' | 4 | import type { RenderComponentExposeType, RenderComponentProps } from '@/core/Library/types' |
4 | import { useLatestMessageValue } from '@/core/Library/hook/useLatestMessageValue' | 5 | import { useLatestMessageValue } from '@/core/Library/hook/useLatestMessageValue' |
5 | import { NodeUtils } from '@/hooks/business/useNodeUtils' | 6 | import { NodeUtils } from '@/hooks/business/useNodeUtils' |
@@ -25,6 +26,10 @@ const onReceiveDataSourceMessage = (_commandSource: CommandSource, message: Subs | @@ -25,6 +26,10 @@ const onReceiveDataSourceMessage = (_commandSource: CommandSource, message: Subs | ||
25 | const cell = nodeUtils.getCellById(node) | 26 | const cell = nodeUtils.getCellById(node) |
26 | if (!cell) return | 27 | if (!cell) return |
27 | const { latestValue } = useLatestMessageValue(message.data, attr!) | 28 | const { latestValue } = useLatestMessageValue(message.data, attr!) |
29 | + | ||
30 | + if (isNullOrUnDef(latestValue)) | ||
31 | + return | ||
32 | + | ||
28 | const flag = rangeList.find(item => item.statusValue?.toString() === latestValue?.toString()) | 33 | const flag = rangeList.find(item => item.statusValue?.toString() === latestValue?.toString()) |
29 | 34 | ||
30 | if (flag) { | 35 | if (flag) { |