mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-02-05 21:20:07 +00:00
fix install commands (#57)
* fix install commands * allow disabling animated man * chore: auto-fix linting and formatting issues --------- Co-authored-by: uubulb <uubulb@users.noreply.github.com>
This commit is contained in:
@@ -29,8 +29,8 @@ export const InstallCommandsMenu = forwardRef<HTMLButtonElement, ButtonProps>((p
|
||||
if (!copy) {
|
||||
try {
|
||||
setCopy(true)
|
||||
if (!settings) throw new Error("Settings is not found.")
|
||||
await copyToClipboard(generateCommand(type, settings) || "")
|
||||
if (!settings.data) throw new Error("Settings is not found.")
|
||||
await copyToClipboard(generateCommand(type, settings.data) || "")
|
||||
} catch (e: Error | any) {
|
||||
console.error(e)
|
||||
toast(t("Error"), {
|
||||
|
||||
Reference in New Issue
Block a user