mirror of
https://github.com/sipeed/NanoKVM.git
synced 2026-09-11 00:22:56 -05:00
fix getting image mount status
This commit is contained in:
@@ -53,6 +53,7 @@ export const Images = ({ setIsMounted }: ImagesProps) => {
|
||||
if (rsp.code !== 0) return;
|
||||
|
||||
const file = rsp.data?.file;
|
||||
setMountedImage(file);
|
||||
setIsMounted(!!file);
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
|
||||
@@ -53,6 +53,7 @@ export const Images = ({ setIsMounted }: ImagesProps) => {
|
||||
if (rsp.code !== 0) return;
|
||||
|
||||
const file = rsp.data?.file;
|
||||
setMountedImage(file);
|
||||
setIsMounted(!!file);
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
|
||||
Reference in New Issue
Block a user