fix: query pinnedAt empty value

This commit is contained in:
steven 2021-12-12 22:06:48 +08:00
parent 50c8947ad5
commit 7e858509e6

View file

@ -115,7 +115,7 @@ const QueryItemContainer: React.FC<QueryItemContainerProps> = (props: QueryItemC
await queryService.unpinQuery(query.id);
queryService.editQuery({
...query,
pinnedAt: undefined,
pinnedAt: "",
});
} else {
await queryService.pinQuery(query.id);