Merge pull request #97 from StimeKe/main

Fixed the issue where the console would continuously report errors when the LyCORIS extension was not present.
main
CanisMinor 2023-05-25 01:02:57 +08:00 committed by GitHub
commit 0d5006045a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -70,6 +70,10 @@ const updateCardForCivitai = () => {
extraNetworkId = `${activeTabType}_${jsModelType}_${CARDID_SUFFIX}`
extraNetworkNode = gradioApp().getElementById(extraNetworkId)
// Check if extra network node exists
if (extraNetworkNode === null) return
// Check if extr network is under thumbnail mode
isThumbMode = false
if (extraNetworkNode?.className === 'extra-network-thumbs') isThumbMode = true