@prefecthq/prefect-ui-library 3.11.53 → 3.11.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prefecthq/prefect-ui-library",
3
- "version": "3.11.53",
3
+ "version": "3.11.54",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -64,7 +64,7 @@
64
64
 
65
65
  <template #action="{ row }">
66
66
  <div class="flow-list__action">
67
- <FlowMenu size="xs" :flow="row" flat @delete="refresh" />
67
+ <FlowMenu size="xs" :flow="row" flat @delete="refresh(row.id)" />
68
68
  </div>
69
69
  </template>
70
70
 
@@ -188,8 +188,11 @@
188
188
 
189
189
  const selectedFlows = ref<Flow[]>([])
190
190
 
191
- function refresh(): void {
192
- subscription.refresh()
191
+ function refresh(flowId?: string): void {
192
+ if (flowId) {
193
+ selectedFlows.value = selectedFlows.value.filter(flow => flow.id !== flowId)
194
+ }
195
+ subscription.refresh()
193
196
  }
194
197
 
195
198
  const emit = defineEmits<{