change types, display userid if login isnt returned
This commit is contained in:
@@ -12,7 +12,7 @@ export function AddedByCell(props: AddedByCellProps) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<span className={styles.otherText}>{props.user?.login || 'Unknown'}</span>
|
<span className={styles.otherText}>{props.user?.login || `UserId: ${props.user?.userId}` || 'Unknown'}</span>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,4 +9,5 @@ export type QueryTemplateRow = {
|
|||||||
datasourceType?: string;
|
datasourceType?: string;
|
||||||
createdAtTimestamp?: number;
|
createdAtTimestamp?: number;
|
||||||
user?: User;
|
user?: User;
|
||||||
|
uid?: string;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export const parseCreatedByValue = (value?: string) => {
|
|||||||
return undefined;
|
return undefined;
|
||||||
} else {
|
} else {
|
||||||
return {
|
return {
|
||||||
userId: Number(vals[1]),
|
userId: vals[1],
|
||||||
login: vals[2],
|
login: vals[2],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ export type DataQuerySpecResponse = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type User = {
|
export type User = {
|
||||||
userId?: number;
|
userId?: string;
|
||||||
login?: string;
|
login?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user