Don't require an app in Flipper specific support questions
Summary: Changelog: Submitting a bug report to Flipper itself no longer requires to have an app connected Reviewed By: jknoxville Differential Revision: D26046284 fbshipit-source-id: d86ba7668c4187629752a9c27d63209af61bda13
This commit is contained in:
committed by
Facebook GitHub Bot
parent
e5232da402
commit
d77940a839
@@ -99,14 +99,16 @@ export class Group {
|
||||
|
||||
// OS validation
|
||||
let osError: string | null = null;
|
||||
if (!selectedOS) {
|
||||
osError = 'Please select an app from the drop down.';
|
||||
} else if (!this.supportedOS.includes(selectedOS)) {
|
||||
osError = `The group ${
|
||||
this.name
|
||||
} supports exports from ${this.supportedOS.join(
|
||||
', ',
|
||||
)}. But your selected device's OS is ${selectedOS}, which is unsupported.`;
|
||||
if (this.name !== 'Flipper') {
|
||||
if (!selectedOS) {
|
||||
osError = 'Please select an app from the drop down.';
|
||||
} else if (!this.supportedOS.includes(selectedOS)) {
|
||||
osError = `The group ${
|
||||
this.name
|
||||
} supports exports from ${this.supportedOS.join(
|
||||
', ',
|
||||
)}. But your selected device's OS is ${selectedOS}, which is unsupported.`;
|
||||
}
|
||||
}
|
||||
return {plugins: str, os: osError};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user