We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5453aa7 commit 7c21256Copy full SHA for 7c21256
ui/src/views/function-lib/index.vue
@@ -264,6 +264,11 @@ function getList() {
264
function refresh(data: any) {
265
if (data) {
266
const index = functionLibList.value.findIndex((v) => v.id === data.id)
267
+ if (user.userInfo && data.user_id === user.userInfo.id) {
268
+ data.username = user.userInfo.username
269
+ } else {
270
+ data.username = userOptions.value.find((v) => v.value === data.user_id)?.label
271
+ }
272
functionLibList.value.splice(index, 1, data)
273
} else {
274
paginationConfig.total = 0
0 commit comments