Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix(nc-gui): no need to add source length check

Ramesh Mane86e74042fcdf
diff --git a/packages/nc-gui/components/dashboard/settings/DataSources.vue b/packages/nc-gui/components/dashboard/settings/DataSources.vue
index 92a8b53376..0a6219bb2a 100644
--- a/packages/nc-gui/components/dashboard/settings/DataSources.vue
+++ b/packages/nc-gui/components/dashboard/settings/DataSources.vue
@@ -70,7 +70,7 @@ async function updateIfSourceOrderIsNullOrDuplicate() {
let initialOrder = 1
- if (sources.value.length && !(sources.value[0]!.is_local || sources.value[0]!.is_meta)) {
+ if (!(sources.value[0]!.is_local || sources.value[0]!.is_meta)) {
// If default source not found, and only one source, return
if (sources.value.length === 1) return