diff --git a/web/src/app/app/(primary_layout)/datasets/[datasetId]/_DatasetsLayout/DatasetPageContext.tsx b/web/src/app/app/(primary_layout)/datasets/[datasetId]/_DatasetsLayout/DatasetPageContext.tsx index fd3f5a885..9067e5b0f 100644 --- a/web/src/app/app/(primary_layout)/datasets/[datasetId]/_DatasetsLayout/DatasetPageContext.tsx +++ b/web/src/app/app/(primary_layout)/datasets/[datasetId]/_DatasetsLayout/DatasetPageContext.tsx @@ -25,6 +25,8 @@ export const useDatasetPageContext = ({ datasetId }: { datasetId: string }) => { return !datasetId || !sql || !ymlFile || (originalYmlFile === ymlFile && originalSQL === sql); }, [datasetSQL, sql, datasetId, datasetYmlFile, ymlFile]); + console.log(disablePublish); + const isChangedSQL = useMemo(() => { return originalDatasetSQL !== sql; }, [originalDatasetSQL, sql]); diff --git a/web/src/app/app/(primary_layout)/datasets/[datasetId]/editor/EditorContainerSubHeader.tsx b/web/src/app/app/(primary_layout)/datasets/[datasetId]/editor/EditorContainerSubHeader.tsx index a1c5732f8..bbdc99437 100644 --- a/web/src/app/app/(primary_layout)/datasets/[datasetId]/editor/EditorContainerSubHeader.tsx +++ b/web/src/app/app/(primary_layout)/datasets/[datasetId]/editor/EditorContainerSubHeader.tsx @@ -25,10 +25,15 @@ export const EditorContainerSubHeader: React.FC<{ return (