Edit query: Remove "fleet" (#40943)

It gets awkward...

<img width="383" height="154" alt="Screenshot 2026-03-04 at 8 17 56 AM"
src="https://github.com/user-attachments/assets/82acd9d4-b692-4520-9f07-77466b950391"
/>
This commit is contained in:
Noah Talerman 2026-03-04 11:10:27 -06:00 committed by GitHub
parent f50bf02c42
commit e408b99013
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -566,27 +566,20 @@ const EditQueryForm = ({
};
const renderQueryTeam = (isEditing = false) => {
if (isFreeTier) return null;
if (isFreeTier || !currentTeamName) return null;
if (currentTeamName) {
if (isEditing) {
return (
<p>
Editing report for <strong>{currentTeamName}</strong> fleet.
</p>
);
}
if (isEditing) {
return (
<p>
Creating a new report for <strong>{currentTeamName}</strong> fleet.
Editing report for <strong>{currentTeamName}</strong>.
</p>
);
}
if (isEditing) {
return <p>Editing global report.</p>;
}
return <p>Creating a new global report.</p>;
return (
<p>
Creating a new report for <strong>{currentTeamName}</strong>.
</p>
);
};
// Observers and observer+ of existing query