diff --git a/.github/workflows/release-nightly-dev.yml b/.github/workflows/release-nightly-dev.yml index 55a711c3f2..1dda89956f 100644 --- a/.github/workflows/release-nightly-dev.yml +++ b/.github/workflows/release-nightly-dev.yml @@ -21,7 +21,7 @@ jobs: TAG_NAME=${CURRENT_DATE}-${CURRENT_TIME} IS_DAILY='Y' # Get current version - CURRENT_VERSION=$(basename $(curl -fs -o/dev/null -w %{redirect_url} https://github.com/nocodb/nocodb/releases/latest)) + CURRENT_VERSION=$(curl -fs https://docs.nocodb.com/releases | grep article | grep div | grep h2 | grep 'id\="[^"]*' -o | cut -c 5-) # Set the tag if [[ ${{ github.event_name }} == 'workflow_dispatch' ]]; then IS_DAILY='N' diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml index 80c4780c31..4a9a56b537 100644 --- a/.github/workflows/release-pr.yml +++ b/.github/workflows/release-pr.yml @@ -33,7 +33,7 @@ jobs: # Get current PR number PR_NUMBER=${{github.event.number}} # Get current version - CURRENT_VERSION=$(basename $(curl -fs -o/dev/null -w %{redirect_url} https://github.com/nocodb/nocodb/releases/latest)) + CURRENT_VERSION=$(curl -fs https://docs.nocodb.com/releases | grep article | grep div | grep h2 | grep 'id\="[^"]*' -o | cut -c 5-) # Construct tag name TAG_NAME=pr-${PR_NUMBER}-${CURRENT_DATE}-${CURRENT_TIME} echo "TARGET_TAG=${TAG_NAME}" >> $GITHUB_OUTPUT diff --git a/packages/nc-gui/components/dashboard/TreeView.vue b/packages/nc-gui/components/dashboard/TreeView.vue index c572700888..4e79803400 100644 --- a/packages/nc-gui/components/dashboard/TreeView.vue +++ b/packages/nc-gui/components/dashboard/TreeView.vue @@ -40,7 +40,7 @@ const { addTab, updateTab } = useTabs() const { $api, $e } = useNuxtApp() -const { bases, tables, loadTables, isSharedBase } = useProject() +const { project, loadProject, bases, tables, loadTables, isSharedBase } = useProject() const { activeTab } = useTabs() @@ -330,6 +330,12 @@ const setIcon = async (icon: string, table: TableType) => { message.error(await extractSdkResponseErrorMsg(e)) } } + +onMounted(async () => { + if (!project.value?.id) { + await loadProject() + } +})