mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-02-25 20:15:01 +01:00
Cancel file selection sets to undefined
This commit is contained in:
@@ -36,6 +36,8 @@ export function BinaryFileEditor({
|
||||
});
|
||||
if (path) {
|
||||
onChange({ filePath: path });
|
||||
} else {
|
||||
onChange({ filePath: undefined });
|
||||
}
|
||||
};
|
||||
|
||||
@@ -56,7 +58,7 @@ export function BinaryFileEditor({
|
||||
{filePath ?? 'Select File'}
|
||||
</div>
|
||||
</HStack>
|
||||
{mimeType !== contentType && !ignoreContentType.value && (
|
||||
{filePath != null && mimeType !== contentType && !ignoreContentType.value && (
|
||||
<Banner className="mt-3 !py-5">
|
||||
<div className="text-sm mb-4 text-center">
|
||||
<div>Set Content-Type header to</div>
|
||||
|
||||
Reference in New Issue
Block a user