chore: update frontend buf generator

This commit is contained in:
Steven
2024-03-06 00:22:31 +08:00
parent 29043f63b6
commit 7c16b1e00f
5 changed files with 8 additions and 4 deletions

View File

@ -113,7 +113,7 @@ const CreateCollectionDrawer: React.FC<Props> = (props: Props) => {
const handleVisibilityInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {
setPartialState({
collectionCreate: Object.assign(state.collectionCreate, {
visibility: Number(e.target.value),
visibility: e.target.value,
}),
});
};

View File

@ -128,7 +128,7 @@ const CreateShortcutDrawer: React.FC<Props> = (props: Props) => {
const handleVisibilityInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {
setPartialState({
shortcutCreate: Object.assign(state.shortcutCreate, {
visibility: Number(e.target.value),
visibility: e.target.value,
}),
});
};