Apply the auto-fixable lint rules and the formatter, and drop the Vite build artifacts.
This commit is contained in:
@@ -41,10 +41,7 @@ export function LivePreview() {
|
||||
})
|
||||
.catch((err: unknown) => {
|
||||
if (cancelled) return;
|
||||
const message =
|
||||
err instanceof Error
|
||||
? `${err.message}\n\n${err.stack ?? ''}`
|
||||
: String(err);
|
||||
const message = err instanceof Error ? `${err.message}\n\n${err.stack ?? ''}` : String(err);
|
||||
setError(message);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user