mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 21:16:00 +00:00
fix
This commit is contained in:
@@ -74,10 +74,12 @@
|
||||
$: supportsPreview =
|
||||
!!findFileFormat($extensions, $values.sourceStorageType) || $values.sourceStorageType == 'archive';
|
||||
|
||||
$: handleChangePreviewSource($previewSource);
|
||||
$: {
|
||||
$values;
|
||||
handleChangePreviewSource($previewSource);
|
||||
}
|
||||
|
||||
const handleChangePreviewSource = async source => {
|
||||
console.log('SOURCE', source);
|
||||
if (source && supportsPreview) {
|
||||
const reader = await createPreviewReader($extensions, $values, source);
|
||||
if (previewReaderStore) previewReaderStore.set(reader);
|
||||
|
||||
Reference in New Issue
Block a user