File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5959 </div >
6060
6161 <div class =" flex flex-col items-center justify-center gap-8 md:flex-row" >
62- {#each cp .expand ?.characters || [] as char , i }
62+ {#each cp .expand ?.characters || [] as char }
6363 <button class ="card w-full max-w-sm border border-base-200 bg-base-100 shadow-xl cursor-pointer transition-all active:scale-95 hover:bg-base-300" onclick ={() => goto (` /characters/${char .id } ` )}>
6464 <figure class =" h-64" >
6565 {#if char .images ?.[0 ]}
Original file line number Diff line number Diff line change 4040 );
4141 goto (` /characters/${page .params .id } ` );
4242 } catch (err : any ) {
43- isSubmitting = false ;
44-
4543 errorText = err .data .data ?.message ?? ' Update failed. Please try again.' ;
4644
4745 const firstKey = Object .keys (err .data .data )[0 ];
5149 errorText = friendlyMessage ;
5250 return ;
5351 }
52+ } finally {
53+ isSubmitting = false ;
5454 }
5555 };
5656
You can’t perform that action at this time.
0 commit comments