mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 20:27:23 +00:00
Initialize tag editing state in the edit tag dialog
This commit is contained in:
@@ -140,6 +140,11 @@ function EditTagButton({
|
|||||||
<>
|
<>
|
||||||
<Button
|
<Button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
setDescription(tag.description);
|
||||||
|
setType(tag.type);
|
||||||
|
setAliasOf(null);
|
||||||
|
setIsAlias(false);
|
||||||
|
setError(null);
|
||||||
const dialog = document.getElementById(
|
const dialog = document.getElementById(
|
||||||
"edit_tag_dialog",
|
"edit_tag_dialog",
|
||||||
) as HTMLDialogElement;
|
) as HTMLDialogElement;
|
||||||
|
Reference in New Issue
Block a user