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