Fix issue with forms after cleanup #15332
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Fixing an issue introduced in #15295
We did change the way that some datafetches are consumed, assuming we always have a valid datasource within it. I skipped a usage of it, where this was not the case.
Error we got:
![image](https://private-user-images.githubusercontent.com/15987277/401558918-f46138c1-b7b6-4190-ae9f-beea8cc81e58.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDAxMzgyMTQsIm5iZiI6MTc0MDEzNzkxNCwicGF0aCI6Ii8xNTk4NzI3Ny80MDE1NTg5MTgtZjQ2MTM4YzEtYjdiNi00MTkwLWFlOWYtYmVlYThjYzgxZTU4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjIxVDExMzgzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ3ZGI0ZjJiNmQ5OGEwZjg4ZWYwNjdlMDA2ZGNiODk5NjVmNmZhOThiYzRlNzQ4ZmYzYjQ4ZmM2ZGQ3NmM0YjkmWC1BbXotU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