pinakes-ui: fix ApiClient clone to preserve auth token
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I2009ce790b3864105082997be12fe5b56a6a6964
This commit is contained in:
parent
ed8ad73497
commit
62058a7c4d
1 changed files with 4 additions and 1 deletions
|
|
@ -26,7 +26,10 @@ pub struct ApiClient {
|
|||
|
||||
impl Clone for ApiClient {
|
||||
fn clone(&self) -> Self {
|
||||
Self::new(&self.base_url, None)
|
||||
Self {
|
||||
client: self.client.clone(),
|
||||
base_url: self.base_url.clone(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue