Skip to content

Commit

Permalink
still print warning
Browse files Browse the repository at this point in the history
  • Loading branch information
carlbrugger committed Oct 31, 2024
1 parent 5f1a16d commit 94e5f64
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions packages/cli/src/x/actions/develop.action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,12 @@ export async function developAction(
(process.env.FLATFILE_SKIP_DEPLOYED_CHECK ?? '').trim().toLowerCase() ===
'true'

if (!skipDeployedCheck) {
const agents = await apiClient.agents.list({
environmentId: environment.id,
})
if (agents?.data && agents?.data?.length > 0) {
console.error(messages.warnDeployedAgents(agents.data))

const agents = await apiClient.agents.list({
environmentId: environment.id,
})
if (agents?.data && agents?.data?.length > 0) {
console.error(messages.warnDeployedAgents(agents.data))
if (!skipDeployedCheck) {
const { developLocally } = await prompts({
type: 'confirm',
name: 'developLocally',
Expand Down

0 comments on commit 94e5f64

Please sign in to comment.