Browse Source

fix: remove force inserted delay

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/6424/head
Raju Udava 1 year ago
parent
commit
8b945250e0
  1. 10
      packages/nc-gui/composables/useLTARStore.ts

10
packages/nc-gui/composables/useLTARStore.ts

@ -218,10 +218,7 @@ const [useProvideLTARStore, useLTARStore] = useInjectionState(
} catch (e: any) {
message.error(`${t('msg.error.failedToLoadList')}: ${await extractSdkResponseErrorMsg(e)}`)
} finally {
// To Keep the Loading State for Minimum 600ms
setTimeout(() => {
isChildrenExcludedLoading.value = false
}, 600)
isChildrenExcludedLoading.value = false
}
}
@ -274,10 +271,7 @@ const [useProvideLTARStore, useLTARStore] = useInjectionState(
} catch (e: any) {
message.error(`${t('msg.error.failedToLoadChildrenList')}: ${await extractSdkResponseErrorMsg(e)}`)
} finally {
// To Keep the Loading State for Minimum 600ms
setTimeout(() => {
isChildrenLoading.value = false
}, 600)
isChildrenLoading.value = false
}
}

Loading…
Cancel
Save