Skip to content

Commit

Permalink
fix: multiple avatar component props handeling
Browse files Browse the repository at this point in the history
  • Loading branch information
RitvikSardana committed Feb 5, 2025
1 parent 233255e commit 1b89567
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions desk/src/components/ListViewBuilder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -403,9 +403,10 @@ function updateColumns(obj) {
handleColumnConfig(column);
return column;
});
columns.value = _columns;
list.data.columns = _columns;
defaultParams.columns = _columns;
columns.value =
list.data.columns =
defaultParams.columns =
isDefault ? "" : obj.columns;
if (reload) {
list.reload({ ...defaultParams });
}
Expand Down
6 changes: 3 additions & 3 deletions desk/src/components/MultipleAvatar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ const _avatars = computed(() => {
result = props.avatars;
}
if (!result) return;
// if (typeof result === "object") {
// return;
// }
if (result[0].hasOwnProperty("name")) {
return result;
}
result = result.map((a: string) => {
let _user = getUser(a);
return {
Expand Down
2 changes: 1 addition & 1 deletion desk/src/components/view-controls/ColumnSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ watchOnce(
if (!val) return;
oldValues.value.columns = JSON.parse(JSON.stringify(val.columns));
oldValues.value.rows = JSON.parse(JSON.stringify(val.data));
oldValues.value.isDefault = val.is_default;
oldValues.value.isDefault = val.is_default ?? false;
}
);
</script>

0 comments on commit 1b89567

Please sign in to comment.