PromucFlow_constructor/app
Manish Kumar 0260c095c3
fix: fix for discard and repository not found exceptions (#40228)
## Description
> [!TIP]  
> _Add a TL;DR when the description is longer than 500 words or
extremely technical (helps the content, marketing, and DevRel team)._
>
> _Please also include relevant motivation and context. List any
dependencies that are required for this change. Add links to Notion,
Figma or any other documents that might be relevant to the PR._


Fixes #40213 #40216   


## Automation

/ok-to-test tags="@tag.Git, @tag.ImportExport"

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/14405567490>
> Commit: 97e5bcbf8152ba14629c1ad299430eb4a529931a
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=14405567490&attempt=1"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.Git, @tag.ImportExport`
> Spec:
> <hr>Fri, 11 Apr 2025 15:31:32 UTC
<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [ ] No


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Bug Fixes**
- File processing now selectively reads only JSON formatted content,
ensuring consistent resource identification.
- Branch handling during repository operations has been streamlined to
eliminate duplicates and improve error reporting.
- Enhanced JSON parsing with robust error handling to prevent unexpected
disruptions and improve overall stability.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-04-11 21:06:10 +05:30
..
client feat: add CodeBlock component for syntax highlighting (#40223) 2025-04-11 18:39:55 +05:30
server fix: fix for discard and repository not found exceptions (#40228) 2025-04-11 21:06:10 +05:30
util